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;
}
doc_Drupal
2016-10-29 08:59:25
Comments
Leave a Comment

Please login to continue.