Skip to content

Commit 9ba6e27

Browse files
committed
minor #15775 Update profiler.rst (erickr)
This PR was merged into the 4.4 branch. Discussion ---------- Update profiler.rst the getKernel() method is available in $event rather than $this, however the $event->getKernel() refers to the \Symfony\Component\HttpKernel\HttpKernel which does not have the isDebug()-method. Perhaps a full event subscriber class could be included to make it more complete? Same problem applies on 5.3, 5.4 and 6.0 as well. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 02ed37c Update profiler.rst
2 parents 209e939 + 02ed37c commit 9ba6e27

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)