From 02ed37c06d0d9719bb2e6973be8894ffc3df9747 Mon Sep 17 00:00:00 2001 From: Eric Krona Date: Sun, 5 Sep 2021 22:23:02 +0200 Subject: [PATCH] Update profiler.rst the getKernel() method is available in $event rather than $this. Perhaps a full event subscriber class could be included to make it more complete? --- profiler.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler.rst b/profiler.rst index 1bc2c1a0eb5..f7468c67d0b 100644 --- a/profiler.rst +++ b/profiler.rst @@ -195,7 +195,7 @@ event:: public function onKernelResponse(ResponseEvent $event) { - if (!$this->getKernel()->isDebug()) { + if (!$event->getKernel()->isDebug()) { return; }