From 61b0f87e51ecc4092d9835159b172326b03177e3 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 1 Oct 2025 11:05:17 +0200 Subject: [PATCH] Update router recipe --- .env | 6 ++++++ config/packages/routing.yaml | 2 +- symfony.lock | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 23747da..17fec15 100644 --- a/.env +++ b/.env @@ -31,3 +31,9 @@ APP_SECRET= ###> nelmio/cors-bundle ### CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$' ###< nelmio/cors-bundle ### + +###> 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 8166181..0f34f87 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: http://localhost + default_uri: '%env(DEFAULT_URI)%' when@prod: framework: diff --git a/symfony.lock b/symfony.lock index 49e636d..d8cbee0 100644 --- a/symfony.lock +++ b/symfony.lock @@ -150,12 +150,12 @@ ] }, "symfony/routing": { - "version": "7.2", + "version": "7.3", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", "version": "7.0", - "ref": "21b72649d5622d8f7da329ffb5afb232a023619d" + "ref": "ab1e60e2afd5c6f4a6795908f646e235f2564eb2" }, "files": [ "config/packages/routing.yaml",