/** * Throws an exception when the store is not available * * @param GetResponseEvent $event Event * * @throws ServiceUnavailableHttpException Service not available */ public function handle(GetResponseEvent $event) { if (!$this->store->isEnabled()) { throw new ServiceUnavailableHttpException(null, $this->message); } }