public function HtmlResponseAttachmentsProcessor::__construct in HTTP/2 Server Push 8
Constructs a HtmlResponseAttachmentsProcessor object.
Parameters
\Drupal\Core\Render\AttachmentsResponseProcessorInterface $html_response_attachments_processor: The decorated HTML response attachments processor service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- src/
Render/ HtmlResponseAttachmentsProcessor.php, line 39
Class
- HtmlResponseAttachmentsProcessor
- Decorates the HTML response attachments processor service, adds Server Push.
Namespace
Drupal\http2_server_push\RenderCode
public function __construct(AttachmentsResponseProcessorInterface $html_response_attachments_processor, RequestStack $request_stack) {
$this->htmlResponseAttachmentsProcessor = $html_response_attachments_processor;
$this->requestStack = $request_stack;
}