TemplateFinder

class TemplateFinder implements TemplateFinderInterface

Finds all the templates.

Methods

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

Constructor.

array findAllTemplates()

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

Details

__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

array findAllTemplates()

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

Return Value

array An array of templates of type TemplateReferenceInterface
doc_Symfony
2016-10-28 06:34:15
Comments
Leave a Comment

Please login to continue.