We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1172b7d commit 0127bd2Copy full SHA for 0127bd2
cookbook/service_container/event_listener.rst
@@ -115,7 +115,7 @@ done as follow::
115
{
116
public function onKernelRequest(GetResponseEvent $event)
117
118
- if (HttpKernel::MASTER_REQUEST != $event->getRequestType()) {
+ if (false === $event->isMasterRequest()) {
119
// don't do anything if it's not the master request
120
return;
121
}
0 commit comments