Skip to content

Commit 02ed37c

Browse files
authored
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?
1 parent 209e939 commit 02ed37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profiler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ event::
195195

196196
public function onKernelResponse(ResponseEvent $event)
197197
{
198-
if (!$this->getKernel()->isDebug()) {
198+
if (!$event->getKernel()->isDebug()) {
199199
return;
200200
}
201201

0 commit comments

Comments
 (0)