Skip to content

Commit

Permalink
Consider dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
kmadejski committed Aug 11, 2019
1 parent 19662a2 commit fdd4b52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bundle/Event/Subscriber/MaintenanceModeSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public static function getSubscribedEvents(): array

public function onKernelRequest(GetResponseEvent $event): void
{
if ($this->kernelEnvironment === 'dev') {
return;
}

$request = $event->getRequest();

/** @var \eZ\Publish\Core\MVC\Symfony\SiteAccess $siteAccess */
Expand Down

0 comments on commit fdd4b52

Please sign in to comment.