Skip to content

Commit

Permalink
Fix event listener
Browse files Browse the repository at this point in the history
This fix the event listener for execute only is master request
  • Loading branch information
gperdomor committed May 9, 2016
1 parent 01c2763 commit 4fe22c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Listener/MaintenanceListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ public function __construct(
*/
public function onKernelRequest(GetResponseEvent $event)
{
if(!$event->isMasterRequest()){
return;
}

$request = $event->getRequest();

if (is_array($this->query)) {
Expand Down

0 comments on commit 4fe22c3

Please sign in to comment.