protected function mergeAppBlocksAssets(AssetCollection $assetsCollection, array $options)
    {
        // When a block has examined, it is saved in this array to avoid parsing it again
        $appsAssets = array();

        // merges assets from installed apps

        foreach ($this->availableBlocks as $className) {
            if ( ! in_array($className, $appsAssets)) {
                $parameterSchema = '%s.%s_%s';
                $parameter = sprintf($parameterSchema, strtolower($className), $options["type"], $options["assetType"]);
                $this->addAssetsFromContainer($assetsCollection, $parameter);
                $this->addExtraAssets($assetsCollection, $parameter);

                $appsAssets[] = $className;
            }
        }

        return $assetsCollection;
    }
protected function mergeAppBlocksAssets(AssetCollection $assetsCollection, array $options)
    {
        // When a block has examined, it is saved in this array to avoid parsing it again
        $appsAssets = array();

        // merges assets from installed apps

        foreach ($this->availableBlocks as $className) {
            if ( ! in_array($className, $appsAssets)) {
                $parameterSchema = '%s.%s_%s';
                $parameter = sprintf($parameterSchema, strtolower($className), $options["type"], $options["assetType"]);
                $this->addAssetsFromContainer($assetsCollection, $parameter);
                $this->addExtraAssets($assetsCollection, $parameter);

                $appsAssets[] = $className;
            }
        }

        return $assetsCollection;
    }
protected function mergeAppBlocksAssets ( AssetCollection $ assetsCollection , array $ options ) { // When a block has examined, it is saved in this array to avoid parsing it again $ appsAssets = array ( ) ; // merges assets from installed apps foreach ( $ this -> availableBlocks as $ className ) { if ( ! in_array ( $ className , $ appsAssets ) ) { $ parameterSchema = '%s.%s_%s' ; $ parameter = sprintf ( $ parameterSchema , strtolower ( $ className ) , $ options [ "type" ] , $ options [ "assetType" ] ) ; $ this -> addAssetsFromContainer ( $ assetsCollection , $ parameter ) ; $ this -> addExtraAssets ( $ assetsCollection , $ parameter ) ; $ appsAssets [ ] = $ className ; } } return $ assetsCollection ; }
Merges the app block assets to the given collection

@param  AssetCollection $assetsCollection
@param  array             $options
@return AssetCollection
Merges the app block assets to the given collection