/** * Checks if access session exists. */ private static function checkAccessSession($controller, $action) { try { if (Session::exists(strtolower(get_class($controller))) or Session::exists(strtolower(get_class($controller) . '-' . $action))) { $controller->{$action}(); } else { $controller->authError(); } } catch (MissingRessourceException $e) { throw $e; } }