public function StreamedResponseListener::onKernelResponse in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/EventListener/StreamedResponseListener.php \Symfony\Component\HttpKernel\EventListener\StreamedResponseListener::onKernelResponse()
Filters the Response.
Parameters
FilterResponseEvent $event A FilterResponseEvent instance:
File
- vendor/
symfony/ http-kernel/ EventListener/ StreamedResponseListener.php, line 32
Class
- StreamedResponseListener
- StreamedResponseListener is responsible for sending the Response to the client.
Namespace
Symfony\Component\HttpKernel\EventListenerCode
public function onKernelResponse(FilterResponseEvent $event) {
if (!$event
->isMasterRequest()) {
return;
}
$response = $event
->getResponse();
if ($response instanceof StreamedResponse) {
$response
->send();
}
}