Skip to content

Commit

Permalink
Merge pull request #129 from symfony-cli/flex-usage-removal
Browse files Browse the repository at this point in the history
Remove usage of flex.symfony.com
  • Loading branch information
fabpot committed Apr 11, 2022
2 parents a1dd898 + d17a0f1 commit 410b6e6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions commands/local_new.go
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 410b6e6

Please sign in to comment.