PHP Класс Elcodi\Store\CoreBundle\Services\TemplateLocator

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Symfony\Component\Templating\EngineInterface $engine, array $bundles ) Constructs the template locator
locate ( string $templatePath ) : string Search for the template in every specified bundle

Защищенные методы

Метод Описание
findTemplate ( string $templatePath ) : boolean | string Finds the template in all the bundles.

Описание методов

__construct() публичный метод

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() защищенный метод

Finds the template in all the bundles.
protected findTemplate ( string $templatePath ) : boolean | string
$templatePath string The template to search.
Результат boolean | string The string found or false if not found

locate() публичный метод

Search for the template in every specified bundle
public locate ( string $templatePath ) : string
$templatePath string The template to find.
Результат string The full template name.