PermissionHandler::__construct

public PermissionHandler::__construct(ModuleHandlerInterface $module_handler, TranslationInterface $string_translation, ControllerResolverInterface $controller_resolver)

Constructs a new PermissionHandler.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

\Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver.

File

core/modules/user/src/PermissionHandler.php, line 83

Class

PermissionHandler
Provides the available permissions based on yml files.

Namespace

Drupal\user

Code

public function __construct(ModuleHandlerInterface $module_handler, TranslationInterface $string_translation, ControllerResolverInterface $controller_resolver) {
  // @todo It would be nice if you could pull all module directories from the
  //   container.
  $this->moduleHandler = $module_handler;
  $this->stringTranslation = $string_translation;
  $this->controllerResolver = $controller_resolver;
}
doc_Drupal
2016-10-29 09:33:41
Comments
Leave a Comment

Please login to continue.