PHP Class Elcodi\Store\CoreBundle\Services\TemplateLocator

Afficher le fichier Open project: elcodi/bamboo Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Templating\EngineInterface $engine, array $bundles ) Constructs the template locator
locate ( string $templatePath ) : string Search for the template in every specified bundle

Méthodes protégées

Méthode Description
findTemplate ( string $templatePath ) : boolean | string Finds the template in all the bundles.

Method Details

__construct() public méthode

Constructs the template locator
public __construct ( Symfony\Component\Templating\EngineInterface $engine, array $bundles )
$engine Symfony\Component\Templating\EngineInterface Render engine
$bundles array The bundles to check (sorted).

findTemplate() protected méthode

Finds the template in all the bundles.
protected findTemplate ( string $templatePath ) : boolean | string
$templatePath string The template to search.
Résultat boolean | string The string found or false if not found

locate() public méthode

Search for the template in every specified bundle
public locate ( string $templatePath ) : string
$templatePath string The template to find.
Résultat string The full template name.