protected function loadBundle($name, $config = [], $publish = true)
    {
        if (!isset($config['class'])) {
            $config['class'] = $name;
        }
        /* @var $bundle AssetBundle */
        $bundle = Reaction::create($config);
        if ($publish) {
            $bundle->publish($this);
        }

        return $bundle;
    }
protected function loadBundle($name, $config = [], $publish = true)
    {
        if (!isset($config['class'])) {
            $config['class'] = $name;
        }
        /* @var $bundle AssetBundle */
        $bundle = Reaction::create($config);
        if ($publish) {
            $bundle->publish($this);
        }

        return $bundle;
    }
protected function loadBundle ( $ name , $ config = [ ] , $ publish = true ) { if ( ! isset ( $ config [ 'class' ] ) ) { $ config [ 'class' ] = $ name ; } /* @var $bundle AssetBundle */ $ bundle = Reaction :: create ( $ config ) ; if ( $ publish ) { $ bundle -> publish ( $ this ) ; } return $ bundle ; }
Loads asset bundle class by name.

@param string $name bundle name
@param array  $config bundle object configuration
@param bool   $publish if bundle should be published
@return AssetBundle
@throws InvalidConfigException if configuration isn't valid
@throws \ReflectionException
Loads asset bundle class by name .