Property | Type | Description | |
---|---|---|---|
$templatePathPatterns |
Method | Description | |
---|---|---|
__construct ( array $templatePathPatterns ) | Constructor. | |
isFresh ( Symfony\Component\Templating\TemplateReferenceInterface $template, integer $time ) | Returns true if the template is still fresh. | |
load ( Symfony\Component\Templating\TemplateReferenceInterface $template ) : Symfony\Component\Templating\Storage\Storage | boolean | Loads a template. |
Method | Description | |
---|---|---|
isAbsolutePath ( string $file ) : true | Returns true if the file is an existing absolute path. |
public __construct ( array $templatePathPatterns ) | ||
$templatePathPatterns | array | An array of path patterns to look for templates |
protected static isAbsolutePath ( string $file ) : true | ||
$file | string | A path |
return | true | if the path exists and is absolute, false otherwise |
public load ( Symfony\Component\Templating\TemplateReferenceInterface $template ) : Symfony\Component\Templating\Storage\Storage | boolean | ||
$template | Symfony\Component\Templating\TemplateReferenceInterface | A template |
return | Symfony\Component\Templating\Storage\Storage | boolean | false if the template cannot be loaded, a Storage instance otherwise |