You are here

public function JsCollectionRenderer::__construct in HTTP/2 Server Push 8

Constructs a JsCollectionRenderer.

Parameters

\Drupal\Core\Asset\AssetCollectionRendererInterface $js_collection_renderer: The decorated JS collection renderer.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

src/Asset/JsCollectionRenderer.php, line 40

Class

JsCollectionRenderer
Decorates the JS collection renderer service, adds Server Push.

Namespace

Drupal\http2_server_push\Asset

Code

public function __construct(AssetCollectionRendererInterface $js_collection_renderer, RequestStack $request_stack) {
  $this->jsCollectionRenderer = $js_collection_renderer;
  $this->requestStack = $request_stack;
}