emit() публичный Метод

{@inheritDoc}
public emit ( Psr\Http\Message\ResponseInterface $response, $maxBufferLength = 8192 )
$response Psr\Http\Message\ResponseInterface
Пример #1
0
 /**
  * Emit the response using the PHP SAPI.
  *
  * @param \Psr\Http\Message\ResponseInterface $response The response to emit
  * @param \Zend\Diactoros\Response\EmitterInterface|null $emitter The emitter to use.
  *   When null, a SAPI Stream Emitter will be used.
  * @return void
  */
 public function emit(ResponseInterface $response, EmitterInterface $emitter = null)
 {
     $stream = $response->getBody();
     if (!$emitter) {
         $emitter = new ResponseEmitter();
     }
     $emitter->emit($response);
 }