private function Server::getEmitter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\DiactorosCode
private function getEmitter() {
if (!$this->emitter) {
$this->emitter = new Response\SapiEmitter();
}
return $this->emitter;
}