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