AccessManager::__construct

public AccessManager::__construct(RouteProviderInterface $route_provider, ParamConverterManagerInterface $paramconverter_manager, AccessArgumentsResolverFactoryInterface $arguments_resolver_factory, AccountInterface $current_user, CheckProviderInterface $check_provider)

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 70

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;
}
doc_Drupal
2016-10-29 08:42:27
Comments
Leave a Comment

Please login to continue.