TemplateFinder
in package
implements
TemplateFinderInterface
Finds all the templates.
Tags
Interfaces, Classes, Traits and Enums
- TemplateFinderInterface
- Interface for finding all the templates.
Table of Contents
- $kernel : mixed
- $parser : mixed
- $rootDir : mixed
- $templates : mixed
- __construct() : mixed
- findAllTemplates() : array<string|int, TemplateReferenceInterface>
- Find all the templates in the bundle and in the kernel Resources folder.
- findTemplatesInBundle() : array<string|int, TemplateReferenceInterface>
- Find templates in the given bundle.
- findTemplatesInFolder() : array<string|int, TemplateReferenceInterface>
- Find templates in the given directory.
Properties
$kernel
private
mixed
$kernel
$parser
private
mixed
$parser
$rootDir
private
mixed
$rootDir
$templates
private
mixed
$templates
Methods
__construct()
public
__construct(KernelInterface $kernel, TemplateNameParserInterface $parser, string $rootDir) : mixed
Parameters
- $kernel : KernelInterface
- $parser : TemplateNameParserInterface
- $rootDir : string
-
The directory where global templates can be stored
Return values
mixed —findAllTemplates()
Find all the templates in the bundle and in the kernel Resources folder.
public
findAllTemplates() : array<string|int, TemplateReferenceInterface>
Return values
array<string|int, TemplateReferenceInterface> —findTemplatesInBundle()
Find templates in the given bundle.
private
findTemplatesInBundle(BundleInterface $bundle) : array<string|int, TemplateReferenceInterface>
Parameters
- $bundle : BundleInterface
-
The bundle where to look for templates
Return values
array<string|int, TemplateReferenceInterface> —findTemplatesInFolder()
Find templates in the given directory.
private
findTemplatesInFolder(string $dir) : array<string|int, TemplateReferenceInterface>
Parameters
- $dir : string