Symfony2 API
Class

Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder

class TemplateFinder implements TemplateFinderInterface

Finds all the templates.

Methods

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

Constructor.

array findAllTemplates()

Find all the templates.

Details

at line 38
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

at line 50
public array findAllTemplates()

Find all the templates.

Return Value

array An array of templates of type TemplateReferenceInterface