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