TplFilesystemLoader
in package
implements
LoaderInterface
Provides a simpler Filesystem loader with mechanisms like namespaces omitted.
Table of Contents
Interfaces
- LoaderInterface
Methods
- __construct() : mixed
- exists() : mixed
- getCacheKey() : string
- getPath() : string
- Returns the underlying path.
- getSourceContext() : Source
- isFresh() : bool
Methods
__construct()
public
__construct(string $path) : mixed
Parameters
- $path : string
-
Base path to the templates directory.
exists()
public
exists(string $name) : mixed
Parameters
- $name : string
getCacheKey()
public
getCacheKey(string $name) : string
Parameters
- $name : string
Return values
stringgetPath()
Returns the underlying path.
public
getPath() : string
Return values
stringgetSourceContext()
public
getSourceContext(string $name) : Source
Parameters
- $name : string
Return values
SourceisFresh()
public
isFresh(string $name, int $time) : bool
Parameters
- $name : string
- $time : int