function NegotiationMiddleware::__construct

Constructs a new NegotiationMiddleware.

Parameters

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

File

core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php, line 34

Class

NegotiationMiddleware
Provides a middleware to determine the content type upon the accept header.

Namespace

Drupal\Core\StackMiddleware

Code

public function __construct(HttpKernelInterface $http_kernel) {
  $this->httpKernel = $http_kernel;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.