public function AccessManager::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Access/AccessManager.php \Drupal\Core\Access\AccessManager::__construct()
Constructs a 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:
File
- core/
lib/ Drupal/ Core/ Access/ AccessManager.php, line 75 - Contains \Drupal\Core\Access\AccessManager.
Class
- AccessManager
- Attaches access check services to routes and runs them on request.
Namespace
Drupal\Core\AccessCode
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;
}