private function initializeRepos()
    {
        $composer = $this->getComposer(false);

        if ($composer) {
            return array_merge(
                array(new ArrayRepository(array($composer->getPackage()))), // root package
                array($composer->getRepositoryManager()->getLocalRepository()), // installed packages
                $composer->getRepositoryManager()->getRepositories() // remotes
            );
        }

        return RepositoryFactory::defaultRepos($this->getIO());
    }
private function initializeRepos()
    {
        $composer = $this->getComposer(false);

        if ($composer) {
            return array_merge(
                array(new ArrayRepository(array($composer->getPackage()))), 
                array($composer->getRepositoryManager()->getLocalRepository()), 
                $composer->getRepositoryManager()->getRepositories() 
            );
        }

        return RepositoryFactory::defaultRepos($this->getIO());
    }
private function initializeRepos ( ) { $ composer = $ this -> getComposer ( false ) ; if ( $ composer ) { return array_merge ( array ( new ArrayRepository ( array ( $ composer -> getPackage ( ) ) ) ) , // root package array ( $ composer -> getRepositoryManager ( ) -> getLocalRepository ( ) ) , // installed packages $ composer -> getRepositoryManager ( ) -> getRepositories ( ) // remotes ) ; } return RepositoryFactory :: defaultRepos ( $ this -> getIO ( ) ) ; }
Initializes repositories

Returns an array of repos in order they should be checked in

@return RepositoryInterface[]
Initializes repositories