public function attach(EventManagerInterface $events, $priority = 1) { if (!$this->isEnabled()) { return; } $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, [$this, 'onRoute'], 10000); }