You are here

public function AcceptHeaderMiddleware::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderMiddleware.php \Drupal\accept_header_routing_test\AcceptHeaderMiddleware::__construct()
  2. 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_test

Code

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