You are here

public function PagesRestrictionSubscriber::__construct in Pages Restriction Access 8

File

src/Event/PagesRestrictionSubscriber.php, line 84

Class

PagesRestrictionSubscriber
Default class for Subscriber.

Namespace

Drupal\pages_restriction\Event

Code

public function __construct(ConfigFactory $config_factory, RequestStack $request_stack, PathMatcherInterface $path_matcher, PagesRestrictionHelper $pages_restriction_helper, AccountProxyInterface $account, Session $session, CurrentPathStack $current_path, AliasManagerInterface $alias_manager) {
  $this->pathMatcher = $path_matcher;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->configFactory = $config_factory;
  $this->pagesRestrictionHelper = $pages_restriction_helper;
  $this->account = $account;
  $this->session = $session;
  $this->currentPath = $current_path;
  $this->aliasManager = $alias_manager;
}