You are here

public function FormatSetter::__construct in JSON:API 8.2

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

Constructs a FormatSetter object.

Parameters

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

File

src/StackMiddleware/FormatSetter.php, line 33

Class

FormatSetter
Sets the 'api_json' for requests with a JSON:API Content-Type header.

Namespace

Drupal\jsonapi\StackMiddleware

Code

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