protected function dispatchOnResponse(ResponseInterface $response): ResponseInterface
    {
        $responseEvent = new ResponseEvent($response);
        $this->dispatcher->dispatch($this->responseEvent, $responseEvent);

        return $responseEvent->getResponse();
    }
protected function dispatchOnResponse(ResponseInterface $response): ResponseInterface
    {
        $responseEvent = new ResponseEvent($response);
        $this->dispatcher->dispatch($this->responseEvent, $responseEvent);

        return $responseEvent->getResponse();
    }
protected function dispatchOnResponse ( ResponseInterface $ response ) : ResponseInterface { $ responseEvent = new ResponseEvent ( $ response ) ; $ this -> dispatcher -> dispatch ( $ this -> responseEvent , $ responseEvent ) ; return $ responseEvent -> getResponse ( ) ; }
Dispatch on-response event

@param  ResponseInterface $response
@return ResponseInterface
Dispatch on - response event