TemplateManager
class TemplateManager
Менеджер шаблонов профилирования.
Методы
| __construct(Profiler $profiler, Twig_Environment $twig, array $templates) Конструктор. | ||
| mixed | getName(Profile $profile, string $panel) Возвращает имя шаблона для заданного панели. | |
| array | getTemplates(Profile $profile) Возвращает шаблоны для заданного профиля. |
Подробности
__construct(Profiler $profiler, Twig_Environment $twig, array $templates)
Конструктор.
Параметры
| Profiler | $profiler | |
| Twig_Environment | $twig | |
| array | $templates |
mixed getName(Profile $profile, string $panel)
Возвращает имя шаблона для заданного панели.
Параметры
| Profile | $profile | |
| string | $panel |
Возвращаемое значение
| mixed |
Исключения
| NotFoundHttpException |
array getTemplates(Profile $profile)
Возвращает шаблоны для заданного профиля.
Параметры
| Profile | $profile |
Возвращаемое значение
| array |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.html