We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91df843 commit c6e2bb6Copy full SHA for c6e2bb6
symfony/routing/7.0/config/packages/routing.php
@@ -6,7 +6,9 @@
6
7
return static function (ContainerConfigurator $containerConfigurator): void {
8
$containerConfigurator->extension('framework', [
9
- 'router' => null,
+ 'router' => [
10
+ 'default_uri' => '%env(DEFAULT_URI)%',
11
+ ],
12
]);
13
if ($containerConfigurator->env() === 'prod') {
14
symfony/routing/7.0/manifest.json
@@ -5,5 +5,10 @@
5
"aliases": ["router"],
"conflict": {
"symfony/framework-bundle": "<7.0"
+ },
+ "env": {
+ "#1": "Configure how to generate URLs in non-HTTP contexts, such as CLI commands.",
+ "#2": "See https://symfony.com/doc/current/routing.html#generating-urls-in-commands",
+ "DEFAULT_URI": "http://localhost"
}
0 commit comments