class TemplateFinder implements TemplateFinderInterface
Finds all the templates.
__construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir) | ||
array | findAllTemplates() Find all the templates in the bundle and in the kernel Resources folder. |
KernelInterface | $kernel | A KernelInterface instance |
TemplateNameParserInterface | $parser | A TemplateNameParserInterface instance |
string | $rootDir | The directory where global templates can be stored |
Find all the templates in the bundle and in the kernel Resources folder.
array | An array of templates of type TemplateReferenceInterface |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.html