public function RouteNormalizerRequestSubscriber::__construct in Redirect 8
Constructs a RouteNormalizerRequestSubscriber object.
Parameters
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator service.
\Drupal\Core\Path\PathMatcherInterface $path_matcher: The path matcher service.
\Drupal\Core\Config\ConfigFactoryInterface $config: The config.
\Drupal\redirect\RedirectChecker $redirect_checker: The redirect checker service. The value of the route_normalizer_enabled container parameter.
File
- src/
EventSubscriber/ RouteNormalizerRequestSubscriber.php, line 65
Class
- RouteNormalizerRequestSubscriber
- Normalizes GET requests performing a redirect if required.
Namespace
Drupal\redirect\EventSubscriberCode
public function __construct(UrlGeneratorInterface $url_generator, PathMatcherInterface $path_matcher, ConfigFactoryInterface $config, RedirectChecker $redirect_checker) {
$this->urlGenerator = $url_generator;
$this->pathMatcher = $path_matcher;
$this->redirectChecker = $redirect_checker;
$this->config = $config
->get('redirect.settings');
}