public function hasBundle($name) {
        if (isset($this->_globalConfig['bundles'][$name])) {
            return true;
        } else {
            foreach ($this->_bundleConfig as $value) {
                if ($value['short_name'] == $name) {
                    return true;
                }
            }
            return false;
        }
    }
public function hasBundle($name) {
        if (isset($this->_globalConfig['bundles'][$name])) {
            return true;
        } else {
            foreach ($this->_bundleConfig as $value) {
                if ($value['short_name'] == $name) {
                    return true;
                }
            }
            return false;
        }
    }
public function hasBundle ( $ name ) { if ( isset ( $ this -> _globalConfig [ 'bundles' ] [ $ name ] ) ) { return true ; } else { foreach ( $ this -> _bundleConfig as $ value ) { if ( $ value [ 'short_name' ] == $ name ) { return true ; } } return false ; } }
Can use shortName or Symfony Bundle Name
Can use shortName or Symfony Bundle Name