Symfony2 API
Class

Symfony\Bundle\FrameworkBundle\Templating\Loader\FilesystemLoader

class FilesystemLoader implements LoaderInterface

FilesystemLoader is a loader that read templates from the filesystem.

Methods

__construct(FileLocatorInterface $locator)

Constructor.

FileStorage|Boolean load(TemplateReferenceInterface $template)

Loads a template.

Boolean isFresh(TemplateReferenceInterface $template, integer $time)

Returns true if the template is still fresh.

Details

at line 33
public __construct(FileLocatorInterface $locator)

Constructor.

Parameters

FileLocatorInterface $locator A FileLocatorInterface instance

at line 45
public FileStorage|Boolean load(TemplateReferenceInterface $template)

Loads a template.

Parameters

TemplateReferenceInterface $template A template

Return Value

FileStorage|Boolean false if the template cannot be loaded, a Storage instance otherwise

at line 64
public Boolean isFresh(TemplateReferenceInterface $template, integer $time)

Returns true if the template is still fresh.

Parameters

TemplateReferenceInterface $template The template name as an array
integer $time The last modification time of the cached template (timestamp)

Return Value

Boolean