You are here

public function Server::setEmitter in Zircon Profile 8

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

Set alternate response emitter to use.

Parameters

Response\EmitterInterface $emitter:

File

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

Class

Server
"Serve" incoming HTTP requests

Namespace

Zend\Diactoros

Code

public function setEmitter(Response\EmitterInterface $emitter) {
  $this->emitter = $emitter;
}