function AcceptHeaderMiddleware::__construct

Same name 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. 8.9.x core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderMiddleware.php \Drupal\accept_header_routing_test\AcceptHeaderMiddleware::__construct()
  3. 11.x 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 25

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.