FilesystemLoader
class FilesystemLoader extends Loader
FilesystemLoader is a loader that read templates from the filesystem.
Properties
protected LoggerInterface|null | $logger | from Loader | |
protected | $templatePathPatterns |
Methods
__construct(string|string[] $templatePathPatterns)
No description
Storage|bool
bool
isFresh(TemplateReferenceInterface $template, int $time)
Returns true if the template is still fresh.
static bool
isAbsolutePath(string $file)
Returns true if the file is an existing absolute path.
Details
bool
isFresh(TemplateReferenceInterface $template, int $time)
Returns true if the template is still fresh.