public function AcceptHeaderMiddleware::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderMiddleware.php \Drupal\accept_header_routing_test\AcceptHeaderMiddleware::__construct()
- 10 core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderMiddleware.php \Drupal\accept_header_routing_test\AcceptHeaderMiddleware::__construct()
Constructs a new AcceptHeaderMiddleware instance.
Parameters
\Symfony\Component\HttpKernel\HttpKernelInterface $app: The app.
File
- core/
modules/ system/ tests/ modules/ accept_header_routing_test/ src/ AcceptHeaderMiddleware.php, line 19
Class
- AcceptHeaderMiddleware
- Example implementation of "accept header"-based content negotiation.
Namespace
Drupal\accept_header_routing_testCode
public function __construct(HttpKernelInterface $app) {
$this->app = $app;
}