From c4be80fb60b83eb52e1380ba1147bac36c38c5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Wed, 14 May 2025 22:07:23 +0200 Subject: [PATCH] Web profiler local only --- config/bundles.php | 2 +- config/packages/web_profiler.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/bundles.php b/config/bundles.php index dccdfdf..c7d17d5 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -11,7 +11,7 @@ return [ Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true], Symfony\UX\LiveComponent\LiveComponentBundle::class => ['all' => true], Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true], - Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true], + Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['local' => true], Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true], Symfony\UX\Icons\UXIconsBundle::class => ['all' => true], FOS\ElasticaBundle\FOSElasticaBundle::class => ['all' => true], diff --git a/config/packages/web_profiler.yaml b/config/packages/web_profiler.yaml index 7b4c1bd..8ef7507 100644 --- a/config/packages/web_profiler.yaml +++ b/config/packages/web_profiler.yaml @@ -1,4 +1,4 @@ -when@dev: +when@local: web_profiler: toolbar: true intercept_redirects: false