function AccessManager::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::__construct()
  2. 10 core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::__construct()
  3. 11.x core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::__construct()

Constructs an AccessManager instance.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.

\Drupal\Core\ParamConverter\ParamConverterManagerInterface $paramconverter_manager: The param converter manager.

\Drupal\Core\Access\AccessArgumentsResolverFactoryInterface $arguments_resolver_factory: The access arguments resolver.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

CheckProviderInterface $check_provider: The check access provider.

File

core/lib/Drupal/Core/Access/AccessManager.php, line 71

Class

AccessManager
Attaches access check services to routes and runs them on request.

Namespace

Drupal\Core\Access

Code

public function __construct(RouteProviderInterface $route_provider, ParamConverterManagerInterface $paramconverter_manager, AccessArgumentsResolverFactoryInterface $arguments_resolver_factory, AccountInterface $current_user, CheckProviderInterface $check_provider) {
    $this->routeProvider = $route_provider;
    $this->paramConverterManager = $paramconverter_manager;
    $this->argumentsResolverFactory = $arguments_resolver_factory;
    $this->currentUser = $current_user;
    $this->checkProvider = $check_provider;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.