public function combine($name)
    {
        try {

            if (!strpos($name, '-')) {
                throw new ApplicationException(Lang::get('system::lang.combiner.not_found', ['name' => $name]));
            }

            $parts = explode('-', $name);
            $cacheId = $parts[0];

            $combiner = CombineAssets::instance();
            return $combiner->getContents($cacheId);

        }
        catch (Exception $ex) {
            return '/* '.e($ex->getMessage()).' */';
        }
    }
public function combine($name)
    {
        try {

            if (!strpos($name, '-')) {
                throw new ApplicationException(Lang::get('system::lang.combiner.not_found', ['name' => $name]));
            }

            $parts = explode('-', $name);
            $cacheId = $parts[0];

            $combiner = CombineAssets::instance();
            return $combiner->getContents($cacheId);

        }
        catch (Exception $ex) {
            return '/* '.e($ex->getMessage()).' */';
        }
    }
public function combine ( $ name ) { try { if ( ! strpos ( $ name , '-' ) ) { throw new ApplicationException ( Lang :: get ( 'system::lang.combiner.not_found' , [ 'name' => $ name ] ) ) ; } $ parts = explode ( '-' , $ name ) ; $ cacheId = $ parts [ 0 ] ; $ combiner = CombineAssets :: instance ( ) ; return $ combiner -> getContents ( $ cacheId ) ; } catch ( Exception $ ex ) { return '/* ' . e ( $ ex -> getMessage ( ) ) . ' */' ; } }
Combines JavaScript and StyleSheet assets.
@param string $name Combined file code
@return string Combined content.
Combines JavaScript and StyleSheet assets .