PHP 클래스 Elcodi\Store\CoreBundle\Services\TemplateLocator

파일 보기 프로젝트 열기: elcodi/bamboo 1 사용 예제들

공개 메소드들

메소드 설명
__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.