public function CachedFormulaLoader::__construct

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:

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/Loader/CachedFormulaLoader.php, line 41

Class

CachedFormulaLoader
Adds a caching layer to a loader.

Namespace

Assetic\Factory\Loader

Code

public function __construct(FormulaLoaderInterface $loader, ConfigCache $configCache, $debug = false) {
  $this->loader = $loader;
  $this->configCache = $configCache;
  $this->debug = $debug;
}