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