if ('latest' ===
$token &&
$latest =
current($this->profiler->
find(null, null, 1, null, null, null
))) { $token =
$latest['token'
];
} if (!
$profile =
$this->profiler->
loadProfile($token)) { return $this->
renderWithCspNonces($request, '@WebProfiler/Profiler/info.html.twig',
['about' => 'no_token', 'token' =>
$token, 'request' =>
$request]);
} if (null ===
$panel) { $panel = 'request';
foreach ($profile->
getCollectors() as $collector) { if ($collector instanceof ExceptionDataCollector &&
$collector->
hasException()) { $panel =
$collector->
getName();
break;
} if ($collector instanceof DumpDataCollector &&
$collector->
getDumpsCount() > 0
) { $panel =
$collector->
getName();
} } }