public function FormatSetter::__construct in Services 9.0.x
Same name and namespace in other branches
- 8.4 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\StackMiddlewareCode
public function __construct(HttpKernelInterface $http_kernel) {
$this->httpKernel = $http_kernel;
}