Merge pull request #916 from dunglas/fix/attributes

Routing: don't require to install doctrine/annotations to use attributes
This commit is contained in:
Fabien Potencier
2021-11-12 15:52:07 +01:00
committed by GitHub
3 changed files with 25 additions and 0 deletions
@@ -0,0 +1,12 @@
framework:
router:
utf8: true
# 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
when@prod:
framework:
router:
strict_requirements: null
+7
View File
@@ -0,0 +1,7 @@
controllers:
resource: ../src/Controller/
type: annotation
kernel:
resource: ../src/Kernel.php
type: annotation
+6
View File
@@ -0,0 +1,6 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"aliases": ["router"]
}