From 011397b9d3952a893f11ebdd83859c181ef47e94 Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Sun, 21 Jul 2024 14:49:53 +0200 Subject: [PATCH] Use command only in dev --- config/services.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/services.yaml b/config/services.yaml index 64792d5b..e22f5b7f 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -108,4 +108,6 @@ services: tags: - { name: kernel.event_listener, event: kernel.request, method: onKernelRequest, priority: 101 } - Symfony\Component\HttpKernel\Profiler\Profiler: '@profiler' \ No newline at end of file +when@dev: + services: + Symfony\Component\HttpKernel\Profiler\Profiler: '@profiler' \ No newline at end of file