You are here

public function RedirectRequestSubscriber::__construct in Redirect 8

Constructs a \Drupal\redirect\EventSubscriber\RedirectRequestSubscriber object.

Parameters

\Drupal\redirect\RedirectRepository $redirect_repository: The redirect entity repository.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.

\Drupal\Core\Config\ConfigFactoryInterface $config: The config.

\Drupal\path_alias\AliasManagerInterface $alias_manager: The alias manager service.

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\redirect\RedirectChecker $checker: The redirect checker service.

\Symfony\Component\Routing\RequestContext: Request context.

File

src/EventSubscriber/RedirectRequestSubscriber.php, line 93

Class

RedirectRequestSubscriber
Redirect subscriber for controller requests.

Namespace

Drupal\redirect\EventSubscriber

Code

public function __construct(RedirectRepository $redirect_repository, LanguageManagerInterface $language_manager, ConfigFactoryInterface $config, AliasManagerInterface $alias_manager, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, RedirectChecker $checker, RequestContext $context, InboundPathProcessorInterface $path_processor) {
  $this->redirectRepository = $redirect_repository;
  $this->languageManager = $language_manager;
  $this->config = $config
    ->get('redirect.settings');
  $this->aliasManager = $alias_manager;
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
  $this->checker = $checker;
  $this->context = $context;
  $this->pathProcessor = $path_processor;
}