CodeExplorer createDumpDataCollector example
return new ProfilerController($urlGenerator,
$profiler,
$twig,
$templates,
new 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());