AsseticBundle\Configuration::getCacheEnabled PHP Method

getCacheEnabled() public method

public getCacheEnabled ( )
    public function getCacheEnabled()
    {
        return $this->cacheEnabled;
    }

Usage Example

Example #1
0
 /**
  * @param array $configuration
  * @return Factory\AssetFactory
  */
 public function createAssetFactory(array $configuration)
 {
     $factory = new Factory\AssetFactory($configuration['root_path']);
     $factory->setAssetManager($this->getAssetManager());
     $factory->setFilterManager($this->getFilterManager());
     // Cache buster should be add only if cache is enabled and if is available.
     if ($this->configuration->getCacheEnabled()) {
         $worker = $this->getCacheBusterStrategy();
         if ($worker instanceof WorkerInterface) {
             $factory->addWorker($worker);
         }
     }
     $factory->setDebug($this->configuration->isDebug());
     return $factory;
 }
All Usage Examples Of AsseticBundle\Configuration::getCacheEnabled