addTraces example


            $this->record($request, 'reload');
            $response = $this->fetch($request$catch);
        } else {
            $response = $this->lookup($request$catch);
        }

        $this->restoreResponseBody($request$response);

        if (HttpKernelInterface::MAIN_REQUEST === $type) {
            $this->addTraces($response);
        }

        if (null !== $this->surrogate) {
            if (HttpKernelInterface::MAIN_REQUEST === $type) {
                $this->surrogateCacheStrategy->update($response);
            } else {
                $this->surrogateCacheStrategy->add($response);
            }
        }

        $response->prepare($request);

        

            $this->record($request, 'reload');
            $response = $this->fetch($request$catch);
        } else {
            $response = $this->lookup($request$catch);
        }

        $this->restoreResponseBody($request$response);

        if (HttpKernelInterface::MAIN_REQUEST === $type) {
            $this->addTraces($response);
        }

        if (null !== $this->surrogate) {
            if (HttpKernelInterface::MAIN_REQUEST === $type) {
                $this->surrogateCacheStrategy->update($response);
            } else {
                $this->surrogateCacheStrategy->add($response);
            }
        }

        $response->prepare($request);

        
Home | Imprint | This part of the site doesn't use cookies.