$this->cspHandler =
$cspHandler;
$this->baseDir =
$baseDir;
} /**
* Redirects to the last profiles.
*
* @throws NotFoundHttpException
*/
public function homeAction(): RedirectResponse
{ $this->
denyAccessIfProfilerDisabled();
return new RedirectResponse($this->generator->
generate('_profiler_search_results',
['token' => 'empty', 'limit' => 10
]), 302,
['Content-Type' => 'text/html'
]);
} /**
* Renders a profiler panel for the given token.
*
* @throws NotFoundHttpException
*/
public function panelAction(Request
$request, string
$token): Response
{