code: 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());
      }
docs: Initializes repositories
  
  Returns an array of repos in order they should be checked in
  
  @return RepositoryInterface[]