ProfilerController
class ProfilerController
Методы
| __construct(UrlGeneratorInterface $generator, Profiler $profiler = null, Environment $twig, array $templates, ContentSecurityPolicyHandler $cspHandler = null, string $baseDir = null) | ||
| RedirectResponse | homeAction() Перенаправляет на последние профили. | |
| Response | panelAction(Request $request, string $token) Отображает панель профилирования для заданного токена. | |
| Response | toolbarAction(Request $request, string $token) Отображает панель отладки Web Debug. | |
| Response | searchBarAction(Request $request) Отображает строку поиска профилировщика. | |
| Response | searchResultsAction(Request $request, string $token) Отображает результаты поиска. | |
| Response | searchAction(Request $request) Сужает область поиска. | |
| Response | phpinfoAction() Отображает информацию о PHP. | |
| Response | openAction(Request $request) Отображает исходный код файла. | |
| TemplateManager | getTemplateManager() Возвращает менеджер шаблонов. |
Подробности
__construct(UrlGeneratorInterface $generator, Profiler $profiler = null, Environment $twig, array $templates, ContentSecurityPolicyHandler $cspHandler = null, string $baseDir = null)
Параметры
| UrlGeneratorInterface | $generator | |
| Profiler | $profiler | |
| Environment | $twig | |
| array | $templates | |
| ContentSecurityPolicyHandler | $cspHandler | |
| string | $baseDir |
RedirectResponse homeAction()
Перенаправляет на последние профили.
Возвращаемое значение
| RedirectResponse | Экземпляр RedirectResponse |
Исключения
| NotFoundHttpException |
Response panelAction(Request $request, string $token)
Отображает панель профилей для заданного маркера.
Параметры
| Request | $request | Текущий HTTP-запрос |
| string | $token | Маркер профиля |
Возвращаемое значение
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response toolbarAction(Request $request, string $token)
Отображает панель инструментов Web Debug.
Параметры
| Request | $request | Текущий HTTP-запрос |
| string | $token | Маркер профиля |
Возвращаемое значение
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response searchBarAction(Request $request)
Отображает строку поиска профиля.
Параметры
| Request | $request |
Возвращаемое значение
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response searchResultsAction(Request $request, string $token)
Отображает результаты поиска.
Параметры
| Request | $request | Текущий HTTP-запрос |
| string | $token | Маркер |
Возвращаемое значение
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response searchAction(Request $request)
Уточняет строку поиска.
Параметры
| Request | $request |
Возвращаемое значение
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response phpinfoAction()
Отображает информацию о PHP.
Возвращаемое значение
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response openAction(Request $request)
Отображает исходный код файла.
Параметры
| Request | $request |
Возвращаемое значение
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
protected TemplateManager getTemplateManager()
Возвращает менеджер шаблонов.
Возвращаемое значение
| TemplateManager | Менеджер шаблонов |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.html