protected function updateResponse(Request $request, Response $response)
    {
        $this->stopProfiling(ProfilingCollection::REQUEST_TIMER);

        if ($this->needToUpdateResponse($response)) {
            $data = $this->getResponseData($response);

            if ($data === false) {
                return;
            }

            $data[$this->responseKey] = $this->storage->getData();

            $this->setResponseData($response, $data);
        }
    }
protected function updateResponse(Request $request, Response $response)
    {
        $this->stopProfiling(ProfilingCollection::REQUEST_TIMER);

        if ($this->needToUpdateResponse($response)) {
            $data = $this->getResponseData($response);

            if ($data === false) {
                return;
            }

            $data[$this->responseKey] = $this->storage->getData();

            $this->setResponseData($response, $data);
        }
    }
protected function updateResponse ( Request $ request , Response $ response ) { $ this -> stopProfiling ( ProfilingCollection :: REQUEST_TIMER ) ; if ( $ this -> needToUpdateResponse ( $ response ) ) { $ data = $ this -> getResponseData ( $ response ) ; if ( $ data === false ) { return ; } $ data [ $ this -> responseKey ] = $ this -> storage -> getData ( ) ; $ this -> setResponseData ( $ response , $ data ) ; } }
Update final response.

@param Request $request
@param Response $response
Update final response .