src/DebugBar/JavascriptRenderer.php
protected function createAsseticCollection($files = null, $content = null)
    {
        $assets = array();
        if ($files) {
            foreach ($files as $file) {
                $assets[] = new \Assetic\Asset\FileAsset($file);
            }
        }
        if ($content) {
            foreach ($content as $item) {
                $assets[] = new \Assetic\Asset\StringAsset($item);
            }
        }
        return new \Assetic\Asset\AssetCollection($assets);
    }
protected function createAsseticCollection($files = null, $content = null)
    {
        $assets = array();
        if ($files) {
            foreach ($files as $file) {
                $assets[] = new \Assetic\Asset\FileAsset($file);
            }
        }
        if ($content) {
            foreach ($content as $item) {
                $assets[] = new \Assetic\Asset\StringAsset($item);
            }
        }
        return new \Assetic\Asset\AssetCollection($assets);
    }
protected function createAsseticCollection ( $ files = null , $ content = null ) { $ assets = array ( ) ; if ( $ files ) { foreach ( $ files as $ file ) { $ assets [ ] = new \ Assetic \ Asset \ FileAsset ( $ file ) ; } } if ( $ content ) { foreach ( $ content as $ item ) { $ assets [ ] = new \ Assetic \ Asset \ StringAsset ( $ item ) ; } } return new \ Assetic \ Asset \ AssetCollection ( $ assets ) ; }
Create an Assetic AssetCollection with the given content.
Filenames will be converted to absolute path using
the base path.

@param array|null $files Array of asset filenames.
@param array|null $content Array of inline asset content.
@return \Assetic\Asset\AssetCollection
Create an Assetic AssetCollection with the given content . Filenames will be converted to absolute path using the base path .