Interface

Symfony\Component\Templating\Loader\LoaderInterface

interface LoaderInterface

LoaderInterface is the interface all loaders must implement.

Methods

Storage|Boolean load(TemplateReferenceInterface $template)

Loads a template.

Boolean isFresh(TemplateReferenceInterface $template, integer $time)

Returns true if the template is still fresh.

Details

at line 35
public Storage|Boolean load(TemplateReferenceInterface $template)

Loads a template.

Parameters

TemplateReferenceInterface $template A template

Return Value

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

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

Returns true if the template is still fresh.

Parameters

TemplateReferenceInterface $template A template
integer $time The last modification time of the cached template (timestamp)

Return Value

Boolean