createDumpDataCollector example

return new ProfilerController($urlGenerator$profiler$twig$templatesnew ContentSecurityPolicyHandler($nonceGenerator));
        }

        return new ProfilerController($urlGenerator$profiler$twig$templates);
    }

    public function testDumpPanelExceptionPriority()
    {
        $exceptionDataCollector = new ExceptionDataCollector();
        $exceptionDataCollector->collect(new Request()new Response()new \DomainException());

        $dumpDataCollector = $this->createDumpDataCollector();

        $profile = new Profile('xxxxxx');
        $profile->setCollectors([$exceptionDataCollector$dumpDataCollector]);

        $this->assertDefaultPanel($exceptionDataCollector->getName()$profile);
    }

    public function testDumpPanelWhenDefinedAfterwards()
    {
        $exceptionDataCollector = new ExceptionDataCollector();
        $exceptionDataCollector->collect(new Request()new Response()new \DomainException());

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