class ProfilerController

Methods

__construct(UrlGeneratorInterface $generator, Profiler $profiler = null, Environment $twig, array $templates, ContentSecurityPolicyHandler $cspHandler = null, string $baseDir = null)

No description

homeAction()

Redirects to the last profiles.

panelAction(Request $request, string $token)

Renders a profiler panel for the given token.

toolbarAction(Request $request, string $token)

Renders the Web Debug Toolbar.

searchBarAction(Request $request)

Renders the profiler search bar.

searchResultsAction(Request $request, string $token)

Renders the search results.

searchAction(Request $request)

Narrows the search bar.

phpinfoAction()

Displays the PHP info.

openAction(Request $request)

Displays the source of a file.

getTemplateManager()

Gets the Template Manager.

Details

__construct(UrlGeneratorInterface $generator, Profiler $profiler = null, Environment $twig, array $templates, ContentSecurityPolicyHandler $cspHandler = null, string $baseDir = null)

Parameters

UrlGeneratorInterface $generator
Profiler $profiler
Environment $twig
array $templates
ContentSecurityPolicyHandler $cspHandler
string $baseDir

RedirectResponse homeAction()

Redirects to the last profiles.

Return Value

RedirectResponse A RedirectResponse instance

Exceptions

NotFoundHttpException

Response panelAction(Request $request, string $token)

Renders a profiler panel for the given token.

Parameters

Request $request The current HTTP request
string $token The profiler token

Return Value

Response A Response instance

Exceptions

NotFoundHttpException

Response toolbarAction(Request $request, string $token)

Renders the Web Debug Toolbar.

Parameters

Request $request The current HTTP Request
string $token The profiler token

Return Value

Response A Response instance

Exceptions

NotFoundHttpException

Response searchBarAction(Request $request)

Renders the profiler search bar.

Parameters

Request $request

Return Value

Response A Response instance

Exceptions

NotFoundHttpException

Response searchResultsAction(Request $request, string $token)

Renders the search results.

Parameters

Request $request The current HTTP Request
string $token The token

Return Value

Response A Response instance

Exceptions

NotFoundHttpException

Response searchAction(Request $request)

Narrows the search bar.

Parameters

Request $request

Return Value

Response A Response instance

Exceptions

NotFoundHttpException

Response phpinfoAction()

Displays the PHP info.

Return Value

Response A Response instance

Exceptions

NotFoundHttpException

Response openAction(Request $request)

Displays the source of a file.

Parameters

Request $request

Return Value

Response A Response instance

Exceptions

NotFoundHttpException

protected TemplateManager getTemplateManager()

Gets the Template Manager.

Return Value

TemplateManager The Template Manager