class HtmlResponseSubscriber implements EventSubscriberInterface (View source)

Response subscriber to handle HTML responses.

Properties

protected AttachmentsResponseProcessorInterface $htmlResponseAttachmentsProcessor

The HTML response attachments processor service.

Methods

__construct(AttachmentsResponseProcessorInterface $html_response_attachments_processor)

Constructs a HtmlResponseSubscriber object.

onRespond(ResponseEvent $event)

Processes attachments for HtmlResponse responses.

static array
getSubscribedEvents()

{@inheritdoc}

Details

__construct(AttachmentsResponseProcessorInterface $html_response_attachments_processor)

Constructs a HtmlResponseSubscriber object.

Parameters

AttachmentsResponseProcessorInterface $html_response_attachments_processor

The HTML response attachments processor service.

onRespond(ResponseEvent $event)

Processes attachments for HtmlResponse responses.

Parameters

ResponseEvent $event

The event to process.

static array getSubscribedEvents()

{@inheritdoc}

Return Value

array