class ChainLoader extends Loader
ChainLoader is a loader that calls other loaders to load templates.
Methods
setLogger(LoggerInterface $logger) Sets the debug logger to use for this loader. | from Loader | |
setDebugger(DebuggerInterface $debugger) deprecated Sets the debugger to use for this loader. | from Loader | |
__construct(array $loaders = array()) Constructor. | ||
addLoader(LoaderInterface $loader) Adds a loader instance. | ||
Storage|bool | load(TemplateReferenceInterface $template) Loads a template. | |
bool | isFresh(TemplateReferenceInterface $template, int $time) Returns true if the template is still fresh. |
Details
setLogger(LoggerInterface $logger)
Sets the debug logger to use for this loader.
setDebugger(DebuggerInterface $debugger) deprecated
deprecated
since version 2.4, to be removed in 3.0. Use $this->setLogger() instead.Sets the debugger to use for this loader.
__construct(array $loaders = array())
Constructor.
addLoader(LoaderInterface $loader)
Adds a loader instance.
Storage|bool load(TemplateReferenceInterface $template)
Loads a template.
bool isFresh(TemplateReferenceInterface $template, int $time)
Returns true if the template is still fresh.
Please login to continue.