]> Raphaël G. Git Repositories - blog/commitdiff
Add default uri
authorRaphaël Gertz <git@rapsys.eu>
Thu, 16 Oct 2025 15:29:40 +0000 (17:29 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 16 Oct 2025 15:29:40 +0000 (17:29 +0200)
Update symfony recipe

.env
config/packages/routing.yaml
symfony.lock

diff --git a/.env b/.env
index 0ae5e6303acafeed6ea107f72b431d4b5026e8fc..73d1be293d4c01fab2603fdaf8c67e1497cb75a4 100644 (file)
--- a/.env
+++ b/.env
@@ -32,3 +32,9 @@ DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&ch
 ###> symfony/mailer ###
 MAILER_DSN=null://null
 ###< symfony/mailer ###
+
+###> 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 8166181c68ab07bfac9aee6e482c7cc24031b8aa..0f34f872ce35ab780aba3b249d2603274273a28b 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: http://localhost
+        default_uri: '%env(DEFAULT_URI)%'
 
 when@prod:
     framework:
index 21095d38ad772d9c28396b2d8b307c23d3da92c7..82ead317b1154324f23597504af7236c735bdd8a 100644 (file)
         ]
     },
     "symfony/routing": {
-        "version": "7.0",
+        "version": "7.3",
         "recipe": {
             "repo": "github.com/symfony/recipes",
             "branch": "main",
             "version": "7.0",
-            "ref": "21b72649d5622d8f7da329ffb5afb232a023619d"
+            "ref": "ab1e60e2afd5c6f4a6795908f646e235f2564eb2"
         },
         "files": [
             "config/packages/routing.yaml",