src/Listener/Events/AjaxEvent.php
public function setResponse(Response $response)
    {
        $this->setParam('response', $response);
        $this->response = $response;

        return $this;
    }
public function setResponse(Response $response)
    {
        $this->setParam('response', $response);
        $this->response = $response;

        return $this;
    }
Set the mvc response

@param Response $response

@return self