public static function addRepository(IOInterface $io, RepositoryManager $rm, array &$repos, $name, array $repoConfig, Pool $pool = null)
    {
        $repoConfig['name'] = $name;
        $repo = $rm->createRepository($repoConfig['type'], $repoConfig);

        return static::addRepositoryInstance($io, $rm, $repos, $name, $repo, $pool);
    }
public static function addRepository(IOInterface $io, RepositoryManager $rm, array &$repos, $name, array $repoConfig, Pool $pool = null)
    {
        $repoConfig['name'] = $name;
        $repo = $rm->createRepository($repoConfig['type'], $repoConfig);

        return static::addRepositoryInstance($io, $rm, $repos, $name, $repo, $pool);
    }
public static function addRepository ( IOInterface $ io , RepositoryManager $ rm , array & $ repos , $ name , array $ repoConfig , Pool $ pool = null ) { $ repoConfig [ 'name' ] = $ name ; $ repo = $ rm -> createRepository ( $ repoConfig [ 'type' ] , $ repoConfig ) ; return static :: addRepositoryInstance ( $ io , $ rm , $ repos , $ name , $ repo , $ pool ) ; }
Add repository config.
The instance of repository is returned if the repository in't added in the pool.

@param IOInterface       $io         The IO instance
@param RepositoryManager $rm         The repository manager
@param array             $repos      The list of already repository added (passed by reference)
@param string            $name       The name of the new repository
@param array             $repoConfig The config of the new repository
@param null|Pool         $pool       The pool

@return null|RepositoryInterface
Add repository config . The instance of repository is returned if the repository in t added in the pool .