You are here

public function AnonymousRedirectSubscriber::__construct in Anonymous Redirect 8.2

AnonymousRedirect constructor.

Parameters

\Drupal\Core\Session\AccountInterface $account: The current user account.

\Drupal\Core\Path\PathMatcher $pathMatcher: The patch matcher service.

File

src/EventSubscriber/AnonymousRedirectSubscriber.php, line 52

Class

AnonymousRedirectSubscriber
Subscribes to kernel events and does the actual redirect.

Namespace

Drupal\anonymous_redirect\EventSubscriber

Code

public function __construct(AccountInterface $account, PathMatcher $pathMatcher, LanguageManagerInterface $languageManager) {
  $this->account = $account;
  $this->pathMatcher = $pathMatcher;
  $this->languageManager = $languageManager;
}