htmlResponseAttachmentsProcessor = $html_response_attachments_processor; $this->requestStack = $request_stack; } /** * {@inheritdoc} */ public function processAttachments(AttachmentsInterface $response) { $response = $this->htmlResponseAttachmentsProcessor->processAttachments($response); $request = $this->requestStack->getCurrentRequest(); if ($request->attributes->has('http2_server_push_link_headers')) { $link_headers = $request->attributes->get('http2_server_push_link_headers'); $response->headers->set('Link', $link_headers, FALSE); } return $response; } }