AccessManager
class AccessManager implements AccessManagerInterface (View source)
Attaches access check services to routes and runs them on request.
Properties
| protected RouteProviderInterface | $routeProvider | The route provider. |
|
| protected ParamConverterManagerInterface | $paramConverterManager | The paramconverter manager. |
|
| protected AccessArgumentsResolverFactoryInterface | $argumentsResolverFactory | The access arguments resolver. |
|
| protected AccountInterface | $currentUser | The current user. |
|
| protected CheckProviderInterface | $checkProvider | The check provider. |
Methods
Constructs an AccessManager instance.
Checks a named route with parameters against applicable access check services.
Execute access checks against the incoming request.
Checks a route against applicable access check services.
Performs the specified access check.
Details
__construct(RouteProviderInterface $route_provider, ParamConverterManagerInterface $paramconverter_manager, AccessArgumentsResolverFactoryInterface $arguments_resolver_factory, AccountInterface $current_user, CheckProviderInterface $check_provider)
Constructs an AccessManager instance.
bool|AccessResultInterface
checkNamedRoute(string $route_name, array $parameters = [], AccountInterface $account = NULL, bool $return_as_object = FALSE)
Checks a named route with parameters against applicable access check services.
Determines whether the route is accessible or not.
bool|AccessResultInterface
checkRequest(Request $request, AccountInterface $account = NULL, bool $return_as_object = FALSE)
Execute access checks against the incoming request.
bool|AccessResultInterface
check(RouteMatchInterface $route_match, AccountInterface $account = NULL, Request $request = NULL, bool $return_as_object = FALSE)
Checks a route against applicable access check services.
Determines whether the route is accessible or not.
protected AccessResultInterface
performCheck(string $service_id, ArgumentsResolverInterface $arguments_resolver)
Performs the specified access check.