public function response(ServerRequestInterface $request, PayloadInterface $payload): ResponseInterface
    {
        $responder = $this->container->get($this->id);

        if ($responder instanceof ResponderInterface) {

            return $responder->response($request, $payload);

        }

        throw new ContainedResponderTypeException($this->id, $responder);
    }
public function response(ServerRequestInterface $request, PayloadInterface $payload): ResponseInterface
    {
        $responder = $this->container->get($this->id);

        if ($responder instanceof ResponderInterface) {

            return $responder->response($request, $payload);

        }

        throw new ContainedResponderTypeException($this->id, $responder);
    }
public function response ( ServerRequestInterface $ request , PayloadInterface $ payload ) : ResponseInterface { $ responder = $ this -> container -> get ( $ this -> id ) ; if ( $ responder instanceof ResponderInterface ) { return $ responder -> response ( $ request , $ payload ) ; } throw new ContainedResponderTypeException ( $ this -> id , $ responder ) ; }
Get the responder from the container then proxy its response method.

@param \Psr\Http\Message\ServerRequestInterface  $request
@param \Ellipse\ADR\PayloadInterface             $payload
@return \Psr\Http\Message\ResponseInterface
@throws \Ellipse\Handlers\Exceptions\ContainedResponderTypeException
Get the responder from the container then proxy its response method .