public function ExceptionController::__construct

Constructor.

Parameters

Drupal\Core\ContentNegotiation $negotiation: The content negotiation library to use to determine the correct response format.

File

drupal/core/lib/Drupal/Core/ExceptionController.php, line 55
Definition of Drupal\Core\ExceptionController.

Class

ExceptionController
This controller handles HTTP errors generated by the routing system.

Namespace

Drupal\Core

Code

public function __construct(ContentNegotiation $negotiation) {
  $this->negotiation = $negotiation;
}