public function preDispatch() { if (!$this->securityManager->isAuthenticated()) { throw new \Exception("Is not authenticated."); } }