/** * {@inheritDoc} */ public function attach(EventManagerInterface $events) { parent::attach($events); $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, [$this, 'checkDeactivatedUser']); }
/** * Inject strategy with configured exception_template * * @param ExceptionStrategy $strategy * @param array $config */ private function injectExceptionTemplate(ExceptionStrategy $strategy, array $config) { $template = isset($config['exception_template']) ? $config['exception_template'] : 'error'; $strategy->setExceptionTemplate($template); }