ChainLoader
in package
implements
LoaderInterface
FinalYes
Loads templates from other loaders.
Tags
Table of Contents
Interfaces
- LoaderInterface
- Interface all loaders must implement.
Properties
- $hasSourceCache : mixed
- $loaders : mixed
Methods
- __construct() : mixed
- addLoader() : void
- exists() : bool
- getCacheKey() : string
- Gets the cache key to use for the cache for a given template name.
- getLoaders() : array<string|int, LoaderInterface>
- getSourceContext() : Source
- Returns the source context for a given template logical name.
- isFresh() : bool
Properties
$hasSourceCache
private
mixed
$hasSourceCache
= []
$loaders
private
mixed
$loaders
= []
Methods
__construct()
public
__construct([array<string|int, LoaderInterface> $loaders = [] ]) : mixed
Parameters
- $loaders : array<string|int, LoaderInterface> = []
addLoader()
public
addLoader(LoaderInterface $loader) : void
Parameters
- $loader : LoaderInterface
exists()
public
exists(string $name) : bool
Parameters
- $name : string
Return values
boolgetCacheKey()
Gets the cache key to use for the cache for a given template name.
public
getCacheKey(string $name) : string
Parameters
- $name : string
Return values
stringgetLoaders()
public
getLoaders() : array<string|int, LoaderInterface>
Return values
array<string|int, LoaderInterface>getSourceContext()
Returns the source context for a given template logical name.
public
getSourceContext(string $name) : Source
Parameters
- $name : string
Return values
SourceisFresh()
public
isFresh(string $name, int $time) : bool
Parameters
- $name : string
- $time : int
-
Timestamp of the last modification time of the cached template