Skip to content

Commit

Permalink
Remove usage of flex.symfony.com
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 11, 2022
1 parent a1dd898 commit d17a0f1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions commands/local_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func runComposer(c *console.Context, dir string, args []string, debug bool) erro
}

func getSpecialVersion(version string) (string, error) {
resp, err := http.Get("https://flex.symfony.com/versions.json")
resp, err := http.Get("https://symfony.com/all-versions.json")
if err != nil {
return "", err
}
Expand All @@ -401,15 +401,9 @@ func getSpecialVersion(version string) (string, error) {
return "", err
}

if version == "dev" {
version = "dev-name"
}

v := versions[version].(string)
if version == "next" {
if version == "next" || version == "dev" {
v += ".x@dev"
} else if version == "dev-name" {
v += "@dev"
}

return v, nil
Expand Down

0 comments on commit d17a0f1

Please sign in to comment.