PHP 클래스 Symfony\Bundle\TwigBundle\Loader\FilesystemLoader

저자: Fabien Potencier ([email protected])
상속: extends Twig_Loader_Filesystem
파일 보기 프로젝트 열기: symfony/symfony 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$locator
$parser

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Config\FileLocatorInterface $locator, Symfony\Component\Templating\TemplateNameParserInterface $parser, string | null $rootPath = null ) Constructor.
exists ( $name )

보호된 메소드들

메소드 설명
findTemplate ( string | Symfony\Component\Templating\TemplateReferenceInterface $template, boolean $throw = true ) : string Returns the path to the template file.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Symfony\Component\Config\FileLocatorInterface $locator, Symfony\Component\Templating\TemplateNameParserInterface $parser, string | null $rootPath = null )
$locator Symfony\Component\Config\FileLocatorInterface A FileLocatorInterface instance
$parser Symfony\Component\Templating\TemplateNameParserInterface A TemplateNameParserInterface instance
$rootPath string | null The root path common to all relative paths (null for getcwd())

exists() 공개 메소드

The name parameter might also be a TemplateReferenceInterface.
public exists ( $name )

findTemplate() 보호된 메소드

The file locator is used to locate the template when the naming convention is the symfony one (i.e. the name can be parsed). Otherwise the template is located using the locator from the twig library.
protected findTemplate ( string | Symfony\Component\Templating\TemplateReferenceInterface $template, boolean $throw = true ) : string
$template string | Symfony\Component\Templating\TemplateReferenceInterface The template
$throw boolean When true, a \Twig_Error_Loader exception will be thrown if a template could not be found
리턴 string The path to the template file

프로퍼티 상세

$locator 보호되어 있는 프로퍼티

protected $locator

$parser 보호되어 있는 프로퍼티

protected $parser