Spec-Zone.ru › Symfony 4.1

TemplateFinder

class TemplateFinder implements TemplateFinderInterface

Находит все шаблоны.

Методы

__construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir)
array findAllTemplates()

Находит все шаблоны в пакете и в папке ресурсов ядра.

Подробности

__construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir)

Параметры

KernelInterface $kernel Экземпляр KernelInterface
TemplateNameParserInterface $parser Экземпляр TemplateNameParserInterface
string $rootDir Директория, где могут храниться глобальные шаблоны

array findAllTemplates()

Находит все шаблоны в пакете и в папке ресурсов ядра.

Значение возврата

array Массив шаблонов типа TemplateReferenceInterface

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API