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/Controller/ExceptionController.php, line 38
Contains \Drupal\Core\Controller\ExceptionController.

Class

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

Namespace

Drupal\Core\Controller

Code

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