Interface all loaders must implement.
author | Fabien Potencier fabien@symfony.com |
---|---|
package | Default |
getCacheKey(string $name): string
Throws |
|
---|
string
The name of the template to load
string
The cache key
getSource(string $name): string
deprecated | since 1.27 (to be removed in 2.0), implement Twig\Loader\SourceContextLoaderInterface |
---|---|
Throws |
|
string
The name of the template to load
string
The template source code
isFresh(string $name,integer $time): boolean
Throws |
|
---|
string
The template name
integer
Timestamp of the last modification time of the cached template
boolean
true if the template is fresh, false otherwise