FileAccess Orion

TemplateFinder
in package
implements TemplateFinderInterface

Finds all the templates.

Tags
author

Victor Berchet victor@suumit.com

deprecated

since version 4.3, to be removed in 5.0; use Twig instead.

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

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
Return values
array<string|int, TemplateReferenceInterface>

Search results