public function searchResultsAction(Request $request, $token)
    {
        $this->denyAccessIfProfilerDisabled();

        if (null !== $this->cspHandler) {
            $this->cspHandler->disableCsp();
        }

        $profile = $this->profiler->loadProfile($token);

        $ip = $request->query->get('ip');
        $method = $request->query->get('method');
        $statusCode = $request->query->get('status_code');
        $url = $request->query->get('url');
        $start = $request->query->get('start', null);
        $end = $request->query->get('end', null);
        $limit = $request->query->get('limit');

        return new Response($this->twig->render('@WebProfiler/Profiler/results.html.twig', [
            'request' => $request,
            'token' => $token,
            'profile' => $profile,
            'tokens' => $this->profiler->find($ip, $url, $limit, $method, $start, $end, $statusCode),
            'ip' => $ip,
            'method' => $method,
            'status_code' => $statusCode,
            'url' => $url,
            'start' => $start,
            'end' => $end,
            'limit' => $limit,
            'panel' => null,
        ]), 200, ['Content-Type' => 'text/html']);
    }
public function searchResultsAction(Request $request, $token)
    {
        $this->denyAccessIfProfilerDisabled();

        if (null !== $this->cspHandler) {
            $this->cspHandler->disableCsp();
        }

        $profile = $this->profiler->loadProfile($token);

        $ip = $request->query->get('ip');
        $method = $request->query->get('method');
        $statusCode = $request->query->get('status_code');
        $url = $request->query->get('url');
        $start = $request->query->get('start', null);
        $end = $request->query->get('end', null);
        $limit = $request->query->get('limit');

        return new Response($this->twig->render('@WebProfiler/Profiler/results.html.twig', [
            'request' => $request,
            'token' => $token,
            'profile' => $profile,
            'tokens' => $this->profiler->find($ip, $url, $limit, $method, $start, $end, $statusCode),
            'ip' => $ip,
            'method' => $method,
            'status_code' => $statusCode,
            'url' => $url,
            'start' => $start,
            'end' => $end,
            'limit' => $limit,
            'panel' => null,
        ]), 200, ['Content-Type' => 'text/html']);
    }
public function searchResultsAction ( Request $ request , $ token ) { $ this -> denyAccessIfProfilerDisabled ( ) ; if ( null !== $ this -> cspHandler ) { $ this -> cspHandler -> disableCsp ( ) ; } $ profile = $ this -> profiler -> loadProfile ( $ token ) ; $ ip = $ request -> query -> get ( 'ip' ) ; $ method = $ request -> query -> get ( 'method' ) ; $ statusCode = $ request -> query -> get ( 'status_code' ) ; $ url = $ request -> query -> get ( 'url' ) ; $ start = $ request -> query -> get ( 'start' , null ) ; $ end = $ request -> query -> get ( 'end' , null ) ; $ limit = $ request -> query -> get ( 'limit' ) ; return new Response ( $ this -> twig -> render ( '@WebProfiler/Profiler/results.html.twig' , [ 'request' => $ request , 'token' => $ token , 'profile' => $ profile , 'tokens' => $ this -> profiler -> find ( $ ip , $ url , $ limit , $ method , $ start , $ end , $ statusCode ) , 'ip' => $ ip , 'method' => $ method , 'status_code' => $ statusCode , 'url' => $ url , 'start' => $ start , 'end' => $ end , 'limit' => $ limit , 'panel' => null , ] ) , 200 , [ 'Content-Type' => 'text/html' ] ) ; }
Renders the search results.

@param Request $request The current HTTP Request
@param string  $token   The token

@return Response A Response instance

@throws NotFoundHttpException
Renders the search results .