public function removeBundle($bundle)
    {
        $bundles = $this->getBundles();
        if (($key = array_search($this->getBundleString($bundle), $bundles)) !== false) {
            unset($bundles[$key]);
            $this->setBundles($bundles);
        }
    }
public function removeBundle($bundle)
    {
        $bundles = $this->getBundles();
        if (($key = array_search($this->getBundleString($bundle), $bundles)) !== false) {
            unset($bundles[$key]);
            $this->setBundles($bundles);
        }
    }
public function removeBundle ( $ bundle ) { $ bundles = $ this -> getBundles ( ) ; if ( ( $ key = array_search ( $ this -> getBundleString ( $ bundle ) , $ bundles ) ) !== false ) { unset ( $ bundles [ $ key ] ) ; $ this -> setBundles ( $ bundles ) ; } }
Remove bundle from kernal.

@param string $bundle
Remove bundle from kernal .