October\Rain\Assetic\Factory\Loader\CachedFormulaLoader

Implements:

  • October\Rain\Assetic\Factory\Loader\FormulaLoaderInterface

Adds a caching layer to a loader.

A cached formula loader is a composition of a formula loader and a cache.

Public methods

public void __construct(FormulaLoaderInterface $loader, ConfigCache $configCache, Boolean $debug=false)

Constructor.

When the loader is in debug mode it will ensure the cached formulae are fresh before returning them.

Parameters
  • FormulaLoaderInterface $loader - A formula loader
  • ConfigCache $configCache - A config cache
  • Boolean $debug - The debug mode

public void load($resources)
Parameters
  • $resources