Symfony\Bundle\WebProfilerBundle\Controller\ProfilerController::searchBarAction PHP Method

searchBarAction() public method

Renders the profiler search bar.
public searchBarAction ( ) : Response
return Symfony\Component\HttpFoundation\Response A Response instance
    public function searchBarAction()
    {
        $profiler = $this->container->get('profiler');
        $profiler->disable();

        if (null === $session = $this->container->get('request')->getSession()) {
            $ip    =
            $url   =
            $limit =
            $token = null;
        } else {
            $ip    = $session->get('_profiler_search_ip');
            $url   = $session->get('_profiler_search_url');
            $limit = $session->get('_profiler_search_limit');
            $token = $session->get('_profiler_search_token');
        }

        return $this->container->get('templating')->renderResponse('WebProfilerBundle:Profiler:search.html.twig', array(
            'token' => $token,
            'ip'    => $ip,
            'url'   => $url,
            'limit' => $limit,
        ));
    }