Exemple #1
0
 /**
  * @param UIAssetFetcher $assetFetcher
  * @return string
  */
 private function getIndividualJsIncludesFromAssetFetcher($assetFetcher)
 {
     $jsIncludeString = '';
     $assets = $assetFetcher->getCatalog()->getAssets();
     foreach ($assets as $jsFile) {
         $jsFile->validateFile();
         $jsIncludeString = $jsIncludeString . sprintf(self::JS_IMPORT_DIRECTIVE, $jsFile->getRelativeLocation());
     }
     return $jsIncludeString;
 }
Exemple #2
0
 /**
  * @return UIAssetCatalog
  */
 protected function getAssetCatalog()
 {
     return $this->assetFetcher->getCatalog();
 }