W3cubDocs

/Drupal 8

public function DefaultExceptionHtmlSubscriber::__construct

public DefaultExceptionHtmlSubscriber::__construct(HttpKernelInterface $http_kernel, LoggerInterface $logger, RedirectDestinationInterface $redirect_destination, UrlMatcherInterface $access_unaware_router)

Constructs a new DefaultExceptionHtmlSubscriber.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The HTTP kernel.

\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.

File

core/lib/Drupal/Core/EventSubscriber/DefaultExceptionHtmlSubscriber.php, line 59

Class

DefaultExceptionHtmlSubscriber
Exception subscriber for handling core default HTML error pages.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(HttpKernelInterface $http_kernel, LoggerInterface $logger, RedirectDestinationInterface $redirect_destination, UrlMatcherInterface $access_unaware_router) {
  $this->httpKernel = $http_kernel;
  $this->logger = $logger;
  $this->redirectDestination = $redirect_destination;
  $this->accessUnawareRouter = $access_unaware_router;
}

© 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!DefaultExceptionHtmlSubscriber.php/function/DefaultExceptionHtmlSubscriber::__construct/8.1.x