/** * 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; } }
/** * Orders to the Session class to delete an access. * * @param string $controller * @param string $action */ protected function deleteAccess($controller, $action = null) { Session::deleteAccess($controller, $action); }