Skip to content

Commit c0e3318

Browse files
authored
Merge pull request #1456 from symfony/routing-sync
[routing] sync DEFAULT_URI from 7.0
2 parents 0c4eb76 + 45c73f1 commit c0e3318

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

symfony/routing/7.4/config/packages/routing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ framework:
22
router:
33
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
44
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
5-
#default_uri: http://localhost
5+
default_uri: '%env(DEFAULT_URI)%'
66

77
when@prod:
88
framework:

symfony/routing/7.4/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
"aliases": ["router"],
66
"conflict": {
77
"symfony/framework-bundle": "<7.0"
8+
},
9+
"env": {
10+
"#1": "Configure how to generate URLs in non-HTTP contexts, such as CLI commands.",
11+
"#2": "See https://symfony.com/doc/current/routing.html#generating-urls-in-commands",
12+
"DEFAULT_URI": "http://localhost"
813
}
914
}

0 commit comments

Comments
 (0)