TemplateFinder
class TemplateFinder implements TemplateFinderInterface
Находит все шаблоны.
Методы
| __construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir) Конструктор. | ||
| array | findAllTemplates() Находит все шаблоны в пакете и в папке Resources ядра. |
Подробности
__construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir)
Конструктор.
Параметры
| KernelInterface | $kernel | Экземпляр KernelInterface |
| TemplateNameParserInterface | $parser | Экземпляр TemplateNameParserInterface |
| string | $rootDir | Директория, где могут храниться глобальные шаблоны |
array findAllTemplates()
Находит все шаблоны в пакете и в папке Resources ядра.
Значение возврата
| array | Массив шаблонов типа TemplateReferenceInterface |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.html