Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DefaultExceptionHtmlSubscriber.php

function DefaultExceptionHtmlSubscriber::__construct

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.

2 calls to DefaultExceptionHtmlSubscriber::__construct()
CustomPageExceptionHtmlSubscriber::__construct in core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php
Constructs a new CustomPageExceptionHtmlSubscriber.
CustomPageExceptionHtmlSubscriber::__construct in core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php
Constructs a new CustomPageExceptionHtmlSubscriber.
1 method overrides DefaultExceptionHtmlSubscriber::__construct()
CustomPageExceptionHtmlSubscriber::__construct in core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php
Constructs a new CustomPageExceptionHtmlSubscriber.

File

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

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal