protected function mergeAssets($method, Template $template, array $options)
    {
        $assetsCollection = $template->$method();
        if (null !== $assetsCollection) {

            $assetsCollection = clone($assetsCollection);

            // merges extra assets from current theme
            $assetsCollection = $this->mergeFromTheme($assetsCollection, $template, $options);
            $assetsCollection = $this->mergeFromListener($assetsCollection, $options);
            $assetsCollection = $this->mergeAppBlocksAssets($assetsCollection, $options);
        }

        return $assetsCollection;
    }
protected function mergeAssets($method, Template $template, array $options)
    {
        $assetsCollection = $template->$method();
        if (null !== $assetsCollection) {

            $assetsCollection = clone($assetsCollection);

            // merges extra assets from current theme
            $assetsCollection = $this->mergeFromTheme($assetsCollection, $template, $options);
            $assetsCollection = $this->mergeFromListener($assetsCollection, $options);
            $assetsCollection = $this->mergeAppBlocksAssets($assetsCollection, $options);
        }

        return $assetsCollection;
    }
protected function mergeAssets ( $ method , Template $ template , array $ options ) { $ assetsCollection = $ template -> $ method ( ) ; if ( null !== $ assetsCollection ) { $ assetsCollection = clone ( $ assetsCollection ) ; // merges extra assets from current theme $ assetsCollection = $ this -> mergeFromTheme ( $ assetsCollection , $ template , $ options ) ; $ assetsCollection = $ this -> mergeFromListener ( $ assetsCollection , $ options ) ; $ assetsCollection = $ this -> mergeAppBlocksAssets ( $ assetsCollection , $ options ) ; } return $ assetsCollection ; }
Merge assets for the method passed as argument

@param  string                                                      $method
@param  Template                                                  $template
@param  array                                                       $options
@return \RedKiteLabs\ThemeEngineBundle\Core\Asset\AssetCollection
Merge assets for the method passed as argument