public function AcceptHeaderMiddleware::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 24 - Contains \Drupal\accept_header_routing_test\AcceptHeaderMiddleware.
Class
- AcceptHeaderMiddleware
- Example implementation of accept header based content negotation.
Namespace
Drupal\accept_header_routing_testCode
public function __construct(HttpKernelInterface $app) {
$this->app = $app;
}