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(FilterResponseEvent $event)

Processes attachments for HtmlResponse responses.

static 
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(FilterResponseEvent $event)

Processes attachments for HtmlResponse responses.

Parameters

FilterResponseEvent $event

The event to process.

static getSubscribedEvents()

{@inheritdoc}