diff --git a/symfony/routing/7.0/config/packages/routing.yaml b/symfony/routing/7.0/config/packages/routing.yaml index 8166181c6..0f34f872c 100644 --- a/symfony/routing/7.0/config/packages/routing.yaml +++ b/symfony/routing/7.0/config/packages/routing.yaml @@ -2,7 +2,7 @@ framework: router: # Configure how to generate URLs in non-HTTP contexts, such as CLI commands. # See https://symfony.com/doc/current/routing.html#generating-urls-in-commands - #default_uri: http://localhost + default_uri: '%env(DEFAULT_URI)%' when@prod: framework: diff --git a/symfony/routing/7.0/manifest.json b/symfony/routing/7.0/manifest.json index fd4536e6d..7dcd4ae42 100644 --- a/symfony/routing/7.0/manifest.json +++ b/symfony/routing/7.0/manifest.json @@ -5,5 +5,10 @@ "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" } }