You are here

private function Server::getEmitter in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-diactoros/src/Server.php \Zend\Diactoros\Server::getEmitter()

Retrieve the current response emitter.

If none has been registered, lazy-loads a Response\SapiEmitter.

Return value

Response\EmitterInterface

File

vendor/zendframework/zend-diactoros/src/Server.php, line 180

Class

Server
"Serve" incoming HTTP requests

Namespace

Zend\Diactoros

Code

private function getEmitter() {
  if (!$this->emitter) {
    $this->emitter = new Response\SapiEmitter();
  }
  return $this->emitter;
}