From c17973faaadc9385f71dd1a45c59b2972421514e Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Fri, 10 Jun 2022 15:06:27 +0200 Subject: [PATCH] [web-profiler-bundle] Enable serializer data collector on 6.1 (#1095) --- .../6.1/config/packages/web_profiler.yaml | 17 +++++++++++++++++ .../6.1/config/routes/web_profiler.yaml | 8 ++++++++ symfony/web-profiler-bundle/6.1/manifest.json | 11 +++++++++++ 3 files changed, 36 insertions(+) create mode 100644 symfony/web-profiler-bundle/6.1/config/packages/web_profiler.yaml create mode 100644 symfony/web-profiler-bundle/6.1/config/routes/web_profiler.yaml create mode 100644 symfony/web-profiler-bundle/6.1/manifest.json diff --git a/symfony/web-profiler-bundle/6.1/config/packages/web_profiler.yaml b/symfony/web-profiler-bundle/6.1/config/packages/web_profiler.yaml new file mode 100644 index 00000000..b9461110 --- /dev/null +++ b/symfony/web-profiler-bundle/6.1/config/packages/web_profiler.yaml @@ -0,0 +1,17 @@ +when@dev: + web_profiler: + toolbar: true + intercept_redirects: false + + framework: + profiler: + only_exceptions: false + collect_serializer_data: true + +when@test: + web_profiler: + toolbar: false + intercept_redirects: false + + framework: + profiler: { collect: false } diff --git a/symfony/web-profiler-bundle/6.1/config/routes/web_profiler.yaml b/symfony/web-profiler-bundle/6.1/config/routes/web_profiler.yaml new file mode 100644 index 00000000..8d85319f --- /dev/null +++ b/symfony/web-profiler-bundle/6.1/config/routes/web_profiler.yaml @@ -0,0 +1,8 @@ +when@dev: + web_profiler_wdt: + resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml' + prefix: /_wdt + + web_profiler_profiler: + resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml' + prefix: /_profiler diff --git a/symfony/web-profiler-bundle/6.1/manifest.json b/symfony/web-profiler-bundle/6.1/manifest.json new file mode 100644 index 00000000..fceb97f4 --- /dev/null +++ b/symfony/web-profiler-bundle/6.1/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "Symfony\\Bundle\\WebProfilerBundle\\WebProfilerBundle": ["dev", "test"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "conflict": { + "symfony/framework-bundle": "<6.1" + } +}