private function InstallDependency(BundleDependency $dependency)
    {
        $bundle = $dependency->BundleName();
        if (array_key_exists($bundle, $this->failedBundles))
        {
            return false;
        }
        $installedVersion = $this->InstalledVersion($bundle);
        $manifest = ClassFinder::Manifest($bundle);
        if (!$installedVersion || version_compare($installedVersion, $manifest->Version()) < 0)
        {
            if (!$this->InstallBundle($bundle))
            {
                return false;
            }
        }
        return true;
    }
private function InstallDependency(BundleDependency $dependency)
    {
        $bundle = $dependency->BundleName();
        if (array_key_exists($bundle, $this->failedBundles))
        {
            return false;
        }
        $installedVersion = $this->InstalledVersion($bundle);
        $manifest = ClassFinder::Manifest($bundle);
        if (!$installedVersion || version_compare($installedVersion, $manifest->Version()) < 0)
        {
            if (!$this->InstallBundle($bundle))
            {
                return false;
            }
        }
        return true;
    }
private function InstallDependency ( BundleDependency $ dependency ) { $ bundle = $ dependency -> BundleName ( ) ; if ( array_key_exists ( $ bundle , $ this -> failedBundles ) ) { return false ; } $ installedVersion = $ this -> InstalledVersion ( $ bundle ) ; $ manifest = ClassFinder :: Manifest ( $ bundle ) ; if ( ! $ installedVersion || version_compare ( $ installedVersion , $ manifest -> Version ( ) ) < 0 ) { if ( ! $ this -> InstallBundle ( $ bundle ) ) { return false ; } } return true ; }
Installs a dependency
@param BundleDependency $dependency
@return boolean
Installs a dependency