Elcodi\Store\CoreBundle\EventListener\StoreUnavailableEventListener::handle PHP Method

handle() public method

Throws an exception when the store is not available
public handle ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent Event
    public function handle(GetResponseEvent $event)
    {
        if (!$this->store->isEnabled()) {
            throw new ServiceUnavailableHttpException(null, $this->message);
        }
    }
StoreUnavailableEventListener