[WebProfilerBundle] Add excluded_paths config (#1568)

This commit is contained in:
Matthieu Lempereur
2026-09-04 14:29:34 +02:00
committed by GitHub
parent 58dbef24ed
commit ea516d752d
3 changed files with 34 additions and 0 deletions
@@ -0,0 +1,15 @@
when@dev:
web_profiler:
toolbar: true
framework:
profiler:
collect: true
excluded_paths:
- '^/\.well-known/'
- '^/favicon\.ico$'
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": "<8.2"
}
}