PHP Класс TwigBridge\Twig\Loader

Наследование: implements Twig_SourceContextLoaderInterfac\Twig_SourceContextLoaderInterface, implements Twig_ExistsLoaderInterfac\Twig_ExistsLoaderInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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