ProfilerController
класс ProfilerController
ProfilerController.
Методы
| __construct(UrlGeneratorInterface $generator, Profiler $profiler = null, Environment $twig, array $templates, string $toolbarPosition = 'bottom', 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) Отображает исходный код файла. |
Подробности
__construct(UrlGeneratorInterface $generator, Profiler $profiler = null, Environment $twig, array $templates, string $toolbarPosition = 'bottom', ContentSecurityPolicyHandler $cspHandler = null, string $baseDir = null)
Конструктор.
Параметры
| UrlGeneratorInterface | $generator | Генератор URL |
| Profiler | $profiler | Профилировщик |
| Environment | $twig | Окружение twig |
| array | $templates | Шаблоны |
| string | $toolbarPosition | Позиция панели инструментов (top, bottom, normal или null — используйте конфигурацию) |
| ContentSecurityPolicyHandler | $cspHandler | Обработчик Content-Security-Policy |
| 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 Toolbar.
Параметры
| Request | $request | Текущий HTTP-запрос |
| string | $token | Токен профилирования |
Значение возврата
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response searchBarAction(Request $request)
Отображает строку поиска профилировщика.
Параметры
| Request | $request | Текущий HTTP-запрос |
Значение возврата
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response searchResultsAction(Request $request, string $token)
Отображает результаты поиска.
Параметры
| Request | $request | Текущий HTTP-запрос |
| string | $token | Токен |
Значение возврата
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response searchAction(Request $request)
Уточняет строку поиска.
Параметры
| Request | $request | Текущий HTTP-запрос |
Значение возврата
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response phpinfoAction()
Отображает информацию о PHP.
Значение возврата
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
Response openAction(Request $request)
Отображает исходный код файла.
Параметры
| Request | $request |
Значение возврата
| Response | Экземпляр Response |
Исключения
| NotFoundHttpException |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.html