From: Raphaƫl Gertz Date: Thu, 26 Nov 2026 17:45:26 +0000 (+0100) Subject: Recipe symfony/routing update X-Git-Url: https://git.rapsys.eu/airlibre/commitdiff_plain/3f2390e1854803141a9369d2d3c47c7568d4b380 Recipe symfony/routing update --- diff --git a/.env b/.env index 59d0994..51cf971 100644 --- a/.env +++ b/.env @@ -70,3 +70,9 @@ GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= GOOGLE_AUTH_CONFIG=%kernel.project_dir%/path/to/file.json ###< google/apiclient ### + +###> symfony/routing ### +# 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 +###< symfony/routing ### diff --git a/config/packages/routing.yaml b/config/packages/routing.yaml index 37bda41..3bb9e61 100644 --- a/config/packages/routing.yaml +++ b/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: 'https://airlibre.eu' + default_uri: '%env(DEFAULT_URI)%' utf8: true when@prod: