Class Twig_Loader_Chain

InheritanceTwig_Loader_Chain
ImplementsTwig_ExistsLoaderInterface, Twig_LoaderInterface

Loads templates from other loaders.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$loaders Twig_Loader_Chain

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor. Twig_Loader_Chain
addLoader() Adds a loader instance. Twig_Loader_Chain
exists() {@inheritdoc} Twig_Loader_Chain
getCacheKey() {@inheritdoc} Twig_Loader_Chain
getSource() {@inheritdoc} Twig_Loader_Chain
isFresh() {@inheritdoc} Twig_Loader_Chain

Property Details

$loaders protected property
protected $loaders = []

Method Details

__construct() public method

Constructor.

public void __construct ( array $loaders = [] )
$loaders Twig_LoaderInterface[]

An array of loader instances

addLoader() public method

Adds a loader instance.

public void addLoader ( Twig_LoaderInterface $loader )
$loader Twig_LoaderInterface

A Loader instance

exists() public method

{@inheritdoc}

public void exists ( $name )
$name
getCacheKey() public method

{@inheritdoc}

public void getCacheKey ( $name )
$name
getSource() public method

{@inheritdoc}

public void getSource ( $name )
$name
isFresh() public method

{@inheritdoc}

public void isFresh ( $name, $time )
$name
$time