You are here

public function RedirectSubscriber::__construct in Url Redirect 8.2

Same name and namespace in other branches
  1. 8 src/EventSubscriber/RedirectSubscriber.php \Drupal\url_redirect\EventSubscriber\RedirectSubscriber::__construct()

RedirectSubscriber constructor.

Parameters

\Drupal\Core\Path\CurrentPathStack $currentPathStack: Current path stack service.

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManagerInterface: Entity type manager service.

\Drupal\Core\Session\AccountProxy $currentUser: Current user service.

\Drupal\Core\StringTranslation\TranslationManager $stringTranslation: Translation manager service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

File

src/EventSubscriber/RedirectSubscriber.php, line 76

Class

RedirectSubscriber

Namespace

Drupal\url_redirect\EventSubscriber

Code

public function __construct(CurrentPathStack $currentPathStack, PathMatcher $pathMatcher, EntityTypeManagerInterface $entityTypeManagerInterface, AccountProxy $currentUser, TranslationManager $stringTranslation, MessengerInterface $messenger) {
  $this->currentPathStack = $currentPathStack;
  $this->pathMatcher = $pathMatcher;
  $this->entityTypeManagerInterface = $entityTypeManagerInterface;
  $this->currentUser = $currentUser;
  $this->stringTranslation = $stringTranslation;
  $this->messenger = $messenger;
}