public function CustomPageExceptionHtmlSubscriber::__construct

public CustomPageExceptionHtmlSubscriber::__construct(ConfigFactoryInterface $config_factory, HttpKernelInterface $http_kernel, LoggerInterface $logger, RedirectDestinationInterface $redirect_destination, UrlMatcherInterface $access_unaware_router, AccessManagerInterface $access_manager)

Constructs a new CustomPageExceptionHtmlSubscriber.

Parameters

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

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The HTTP Kernel service.

\Psr\Log\LoggerInterface $logger: The logger service.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

\Symfony\Component\Routing\Matcher\UrlMatcherInterface $access_unaware_router: A router implementation which does not check access.

\Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager.

Overrides DefaultExceptionHtmlSubscriber::__construct

File

core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php, line 52

Class

CustomPageExceptionHtmlSubscriber
Exception subscriber for handling core custom HTML error pages.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, HttpKernelInterface $http_kernel, LoggerInterface $logger, RedirectDestinationInterface $redirect_destination, UrlMatcherInterface $access_unaware_router, AccessManagerInterface $access_manager) {
  parent::__construct($http_kernel, $logger, $redirect_destination, $access_unaware_router);
  $this->configFactory = $config_factory;
  $this->accessManager = $access_manager;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!CustomPageExceptionHtmlSubscriber.php/function/CustomPageExceptionHtmlSubscriber::__construct/8.1.x