abstract class Loader implements LoaderInterface

Loader is the base class for all template loader classes.

Properties

protected LoggerInterface|null $logger
protected $debugger

Methods

setLogger(LoggerInterface $logger)

Sets the debug logger to use for this loader.

setDebugger(DebuggerInterface $debugger) deprecated

Sets the debugger to use for this loader.

Details

at line 37
setLogger(LoggerInterface $logger)

Sets the debug logger to use for this loader.

Parameters

LoggerInterface $logger

at line 49
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.

Parameters

DebuggerInterface $debugger A debugger instance