symfony/routing

recipe
This commit is contained in:
2026-02-05 22:08:45 +01:00
parent 47babe6777
commit 731b445849
4 changed files with 22 additions and 10 deletions

6
.env
View File

@@ -38,3 +38,9 @@ MAILER_DSN=null://null
SENTRY_DSN= SENTRY_DSN=
###< sentry/sentry-symfony ### ###< sentry/sentry-symfony ###
XDEBUG_MODE=coverage XDEBUG_MODE=coverage
###> 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 ###

View File

@@ -1,8 +1,8 @@
framework: framework:
router: router:
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands. # 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 # See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
#default_uri: http://localhost default_uri: '%env(DEFAULT_URI)%'
when@prod: when@prod:
framework: framework:

View File

@@ -1,5 +1,11 @@
# yaml-language-server: $schema=../vendor/symfony/routing/Loader/schema/routing.schema.json
# This file is the entry point to configure the routes of your app.
# Methods with the #[Route] attribute are automatically imported.
# See also https://symfony.com/doc/current/routing.html
# To list all registered routes, run the following command:
# bin/console debug:router
controllers: controllers:
resource: resource: routing.controllers
path: ../src/Controller/
namespace: Tvdt\Controller
type: attribute

View File

@@ -247,12 +247,12 @@
] ]
}, },
"symfony/routing": { "symfony/routing": {
"version": "7.2", "version": "8.0",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "7.0", "version": "7.4",
"ref": "21b72649d5622d8f7da329ffb5afb232a023619d" "ref": "bc94c4fd86f393f3ab3947c18b830ea343e51ded"
}, },
"files": [ "files": [
"config/packages/routing.yaml", "config/packages/routing.yaml",