public function RequireLoginSubscriber::__construct in Require Login 8
Same name and namespace in other branches
- 8.2 src/EventSubscriber/RequireLoginSubscriber.php \Drupal\require_login\EventSubscriber\RequireLoginSubscriber::__construct()
Class constructor.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Session\AccountProxyInterface $account_proxy: The account proxy.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
\Drupal\Core\Path\PathMatcher $path_matcher: The path matcher.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path stack.
\Drupal\path_alias\AliasManager $alias_manager: The path alias manager.
File
- src/
EventSubscriber/ RequireLoginSubscriber.php, line 111
Class
- RequireLoginSubscriber
- Login requirement.
Namespace
Drupal\require_login\EventSubscriberCode
public function __construct(ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, RequestStack $request_stack, AccountProxyInterface $account_proxy, MessengerInterface $messenger, PathMatcher $path_matcher, CurrentPathStack $current_path, AliasManager $alias_manager) {
$this->eventException = FALSE;
$this->moduleHandler = $module_handler;
$this->configFactory = $config_factory;
$this->requestStack = $request_stack;
$this->accountProxy = $account_proxy;
$this->messenger = $messenger;
$this->pathMatcher = $path_matcher;
$this->currentPath = $current_path;
$this->aliasManager = $alias_manager;
}