Symfony\Component\Templating\Loader\CacheLoader
CacheLoader is a loader that caches other loaders responses on the filesystem.
This cache only caches on disk to allow PHP accelerators to cache the opcodes.
All other mechanism would imply the use of `eval()`.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class CacheLoader
extends Loader
{
- // Inherited members from Loader
- protected $debugger;
- // methods
- public void __construct()
- public Storage|Boolean load()
- public Boolean isFresh()
- // Inherited methods from Loader
- public void setDebugger()
Hierarchy
Members
protected
- $debugger
- $dir
- $loader
Methods
public
- __construct() — Constructor.
- isFresh() — Returns true if the template is still fresh.
- load() — Loads a template.
Inherited from Symfony\Component\Templating\Loader\Loader
public
- setDebugger() — Sets the debugger to use for this loader.