Skip to content

Commit 45c73f1

Browse files
[routing] sync DEFAULT_URI from 7.0
1 parent 0c4eb76 commit 45c73f1

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)