HtmlResponseBigPipeSubscriber
class HtmlResponseBigPipeSubscriber implements EventSubscriberInterface (View source)
Response subscriber to replace the HtmlResponse with a BigPipeResponse.
Properties
| protected BigPipe | $bigPipe | The BigPipe service. |
Methods
onRespondEarly(FilterResponseEvent $event)
Adds markers to the response necessary for the BigPipe render strategy.
onRespond(FilterResponseEvent $event)
Transforms a HtmlResponse to a BigPipeResponse.
getBigPipeService(FilterResponseEvent $event)
Returns the BigPipe service to use to send the current response.
static
getSubscribedEvents()
{@inheritdoc}
Details
__construct(BigPipe $big_pipe)
Constructs a HtmlResponseBigPipeSubscriber object.
onRespondEarly(FilterResponseEvent $event)
Adds markers to the response necessary for the BigPipe render strategy.
onRespond(FilterResponseEvent $event)
Transforms a HtmlResponse to a BigPipeResponse.
protected BigPipe
getBigPipeService(FilterResponseEvent $event)
Returns the BigPipe service to use to send the current response.
static
getSubscribedEvents()
{@inheritdoc}