ProfilerController
class ProfilerController
ProfilerController.
Methods
| __construct(UrlGeneratorInterface $generator, Profiler $profiler = null, Environment $twig, array $templates, string $toolbarPosition = 'bottom', ContentSecurityPolicyHandler $cspHandler = null, string $baseDir = null) Constructor. | ||
| RedirectResponse | homeAction() Redirects to the last profiles. | |
| Response | panelAction(Request $request, string $token) Renders a profiler panel for the given token. | |
| Response | toolbarAction(Request $request, string $token) Renders the Web Debug Toolbar. | |
| Response | searchBarAction(Request $request) Renders the profiler search bar. | |
| Response | searchResultsAction(Request $request, string $token) Renders the search results. | |
| Response | searchAction(Request $request) Narrows the search bar. | |
| Response | phpinfoAction() Displays the PHP info. | |
| Response | openAction(Request $request) Displays the source of a file. |
Details
__construct(UrlGeneratorInterface $generator, Profiler $profiler = null, Environment $twig, array $templates, string $toolbarPosition = 'bottom', ContentSecurityPolicyHandler $cspHandler = null, string $baseDir = null)
Constructor.
Parameters
| UrlGeneratorInterface | $generator | The URL Generator |
| Profiler | $profiler | The profiler |
| Environment | $twig | The twig environment |
| array | $templates | The templates |
| string | $toolbarPosition | The toolbar position (top, bottom, normal, or null -- use the configuration) |
| ContentSecurityPolicyHandler | $cspHandler | The Content-Security-Policy handler |
| string | $baseDir | The project root directory |
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 | The current HTTP 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 | The current HTTP 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 |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.html