private function SapiEmitter::emitBody in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-diactoros/src/Response/SapiEmitter.php \Zend\Diactoros\Response\SapiEmitter::emitBody()
Emit the message body.
Loops through the output buffer, flushing each, before emitting the response body using `echo()`.
Parameters
ResponseInterface $response:
int $maxBufferLevel Flush up to this buffer level.:
1 call to SapiEmitter::emitBody()
- SapiEmitter::emit in vendor/
zendframework/ zend-diactoros/ src/ Response/ SapiEmitter.php - Emits a response for a PHP SAPI environment.
File
- vendor/
zendframework/ zend-diactoros/ src/ Response/ SapiEmitter.php, line 91
Class
Namespace
Zend\Diactoros\ResponseCode
private function emitBody(ResponseInterface $response, $maxBufferLevel) {
if (null === $maxBufferLevel) {
$maxBufferLevel = ob_get_level();
}
while (ob_get_level() > $maxBufferLevel) {
ob_end_flush();
}
echo $response
->getBody();
}