Skip to content

Commit d17a0f1

Browse files
committed
Remove usage of flex.symfony.com
1 parent a1dd898 commit d17a0f1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

commands/local_new.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func runComposer(c *console.Context, dir string, args []string, debug bool) erro
385385
}
386386

387387
func getSpecialVersion(version string) (string, error) {
388-
resp, err := http.Get("https://flex.symfony.com/versions.json")
388+
resp, err := http.Get("https://symfony.com/all-versions.json")
389389
if err != nil {
390390
return "", err
391391
}
@@ -401,15 +401,9 @@ func getSpecialVersion(version string) (string, error) {
401401
return "", err
402402
}
403403

404-
if version == "dev" {
405-
version = "dev-name"
406-
}
407-
408404
v := versions[version].(string)
409-
if version == "next" {
405+
if version == "next" || version == "dev" {
410406
v += ".x@dev"
411-
} else if version == "dev-name" {
412-
v += "@dev"
413407
}
414408

415409
return v, nil

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy