Zend\Stratigility\Dispatch::setResponsePrototype PHP Method

setResponsePrototype() public method

Set a response prototype to use when invoking callable middleware following http-interop middleware.
public setResponsePrototype ( Psr\Http\Message\ResponseInterface $responsePrototype ) : void
$responsePrototype Psr\Http\Message\ResponseInterface
return void
    public function setResponsePrototype(ResponseInterface $responsePrototype)
    {
        $this->responsePrototype = $responsePrototype;
    }

Usage Example

Example #1
0
 /**
  * @param ResponseInterface $prototype
  * @return void
  */
 public function setResponsePrototype(ResponseInterface $prototype)
 {
     $this->responsePrototype = $prototype;
     $this->dispatch->setResponsePrototype($prototype);
 }
All Usage Examples Of Zend\Stratigility\Dispatch::setResponsePrototype