You are here

public function FormatSetter::__construct in Services 8.4

Same name and namespace in other branches
  1. 9.0.x src/StackMiddleware/FormatSetter.php \Drupal\services\StackMiddleware\FormatSetter::__construct()

Constructs a PageCache object.

Parameters

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

File

src/StackMiddleware/FormatSetter.php, line 32

Class

FormatSetter
Class which extracts accept headers and sets Request formats accordingly to at least allow for accept header variation when needed. This class respects core's usage of request format and attempts to communicate it generically. It should leave the…

Namespace

Drupal\services\StackMiddleware

Code

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