]> Raphaël G. Git Repositories - airlibre/commitdiff
Recipe symfony/routing update
authorRaphaël Gertz <git@rapsys.eu>
Thu, 26 Nov 2026 17:45:26 +0000 (18:45 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 26 Nov 2026 17:45:26 +0000 (18:45 +0100)
.env
config/packages/routing.yaml

diff --git a/.env b/.env
index 59d0994bddd222c999ed3a53f2f6a9a2f3455031..51cf9719f0ba27af3a9a44fa0baa95f94fb7a408 100644 (file)
--- 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 ###
index 37bda410d4bd9af66926802957d6f229a1faa4be..3bb9e61a2b4cd13584198f6ed0dd0f8c983d4091 100644 (file)
@@ -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: