You are here

public function DomainRedirectRequestSubscriber::__construct in Redirect 8

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

Parameters

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

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

\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher.

File

modules/redirect_domain/src/EventSubscriber/DomainRedirectRequestSubscriber.php, line 55

Class

DomainRedirectRequestSubscriber
Redirect subscriber for controller requests.

Namespace

Drupal\redirect_domain\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, RedirectChecker $redirect_checker, PathMatcherInterface $path_matcher) {
  $this->domainConfig = $config_factory
    ->get('redirect_domain.domains');
  $this->redirectConfig = $config_factory
    ->get('redirect.settings');
  $this->redirectChecker = $redirect_checker;
  $this->pathMatcher = $path_matcher;
}