From c260a2d756ca64d56a17b1e32cb3a03900243ded Mon Sep 17 00:00:00 2001 From: tchapi Date: Fri, 31 May 2024 22:45:21 +0200 Subject: [PATCH] Better implementation --- config/services.yaml | 8 ++++++++ config/services_dev.yaml | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) delete mode 100644 config/services_dev.yaml diff --git a/config/services.yaml b/config/services.yaml index 03fa3a4..100becb 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -63,3 +63,11 @@ services: App\Logging\Monolog\PasswordFilterProcessor: tags: - { name: monolog.processor } + +when@dev: + services: + Symfony\Component\HttpKernel\Profiler\Profiler: '@profiler' + +when@test: + services: + Symfony\Component\HttpKernel\Profiler\Profiler: '@profiler' \ No newline at end of file diff --git a/config/services_dev.yaml b/config/services_dev.yaml deleted file mode 100644 index c4f12dd..0000000 --- a/config/services_dev.yaml +++ /dev/null @@ -1,2 +0,0 @@ -services: - Symfony\Component\HttpKernel\Profiler\Profiler: '@profiler' \ No newline at end of file