PHP 클래스 TwigBridge\Twig\Loader

상속: implements Twig_SourceContextLoaderInterfac\Twig_SourceContextLoaderInterface, implements Twig_ExistsLoaderInterfac\Twig_ExistsLoaderInterface
파일 보기 프로젝트 열기: rcrowe/TwigBridge 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Template lookup cache.
$extension Twig file extension.
$files Illuminate\Filesystem\Filesystem
$finder Illuminate\View\ViewFinderInterface

공개 메소드들

메소드 설명
__construct ( Illuminate\Filesystem\Filesystem $files, Illuminate\View\ViewFinderInterface $finder, string $extension = 'twig' )
exists ( $name )
findTemplate ( string $name ) : string Return path to template without the need for the extension.
getCacheKey ( $name )
getSourceContext ( $name )
isFresh ( $name, $time )

보호된 메소드들

메소드 설명
normalizeName ( string $name ) : string Normalize the Twig template name to a name the ViewFinder can use

메소드 상세

__construct() 공개 메소드

public __construct ( Illuminate\Filesystem\Filesystem $files, Illuminate\View\ViewFinderInterface $finder, string $extension = 'twig' )
$files Illuminate\Filesystem\Filesystem The filesystem
$finder Illuminate\View\ViewFinderInterface
$extension string Twig file extension.

exists() 공개 메소드

public exists ( $name )

findTemplate() 공개 메소드

Return path to template without the need for the extension.
public findTemplate ( string $name ) : string
$name string Template file name or path.
리턴 string Path to template

getCacheKey() 공개 메소드

public getCacheKey ( $name )

getSourceContext() 공개 메소드

public getSourceContext ( $name )

isFresh() 공개 메소드

public isFresh ( $name, $time )

normalizeName() 보호된 메소드

Normalize the Twig template name to a name the ViewFinder can use
protected normalizeName ( string $name ) : string
$name string Template file name.
리턴 string The parsed name

프로퍼티 상세

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

Template lookup cache.
protected $cache

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

Twig file extension.
protected $extension

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

protected Filesystem,Illuminate\Filesystem $files
리턴 Illuminate\Filesystem\Filesystem

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

protected ViewFinderInterface,Illuminate\View $finder
리턴 Illuminate\View\ViewFinderInterface