Esempio n. 1
0
 /**
  * Create list of files that belong to the collection for all collections
  */
 private function createList()
 {
     $this->collectionAssets = array();
     foreach ($this->assetManager->all() as $name => $collection) {
         $this->collectionAssets[$name] = array();
         $this->findAssetsInCollection($collection, $name);
     }
 }
Esempio n. 2
0
 /**
  * Find asset collection by name in asset manager
  *
  * @param string $asset
  * @throws Exceptions\InvalidStateException
  * @return AssetCollection
  */
 private function getAssetCollectionByName($asset)
 {
     if ($this->manager === NULL) {
         throw new InvalidStateException("AssetManager is not set, therefore can not resolve asset collection \"{$asset}\" by name.");
     }
     return $this->manager->get($asset);
 }