Use PHP rougin config files instead of XML ones (#1407)

This commit is contained in:
Fabien Potencier
2025-04-27 19:08:28 +02:00
committed by GitHub
parent 79f2663810
commit 597549ef9d
6 changed files with 39 additions and 1 deletions
@@ -1,4 +1,4 @@
when@dev:
_errors:
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
resource: '@FrameworkBundle/Resources/config/routing/errors.php'
prefix: /_error
@@ -0,0 +1,11 @@
when@dev:
web_profiler:
toolbar: true
framework:
profiler:
collect_serializer_data: true
when@test:
framework:
profiler: { collect: false }
@@ -0,0 +1,8 @@
when@dev:
web_profiler_wdt:
resource: '@WebProfilerBundle/Resources/config/routing/wdt.php'
prefix: /_wdt
web_profiler_profiler:
resource: '@WebProfilerBundle/Resources/config/routing/profiler.php'
prefix: /_profiler
@@ -0,0 +1,11 @@
{
"bundles": {
"Symfony\\Bundle\\WebProfilerBundle\\WebProfilerBundle": ["dev", "test"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"conflict": {
"symfony/framework-bundle": "<6.1"
}
}
@@ -0,0 +1,3 @@
webhook:
resource: '@FrameworkBundle/Resources/config/routing/webhook.php'
prefix: /webhook
+5
View File
@@ -0,0 +1,5 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}