protected function loadServices($token, Request $request)
    {
        $this->templates = $this->container->getParameter('data_collector.templates');
        $this->twig = $this->container->get("twig");
        $this->accessor = PropertyAccess::createPropertyAccessor();
        $this->profilerManager = $this->container->get("logboard.profiler_manager");
        $this->queryManager = $this->container->get('logboard.query_manager');

        $this->queryManager->handleQueries($request, $token);

        $this->engine = $this->queryManager->getEngineServiceId();

        $this->setEngine();

        $this->profilerManager->loadProfiles($this->queryManager);
    }