W3cubDocs

/Symfony 3.0

Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder

class TemplateFinder implements TemplateFinderInterface

Finds all the templates.

Methods

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

Constructor.

TemplateReferenceInterface[] findAllTemplates()

Find all the templates in the bundle and in the kernel Resources folder.

Details

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

Constructor.

Parameters

KernelInterface $kernel A KernelInterface instance
TemplateNameParserInterface $parser A TemplateNameParserInterface instance
string $rootDir The directory where global templates can be stored

public TemplateReferenceInterface[] findAllTemplates()

Find all the templates in the bundle and in the kernel Resources folder.

Return Value

TemplateReferenceInterface[] An array of templates of type TemplateReferenceInterface

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