private function addRepository(
        RepositoryManager $repoManager, array &$repositories, $repoJson
    ) {
        if (isset($repoJson['type'])) {
            $this->getLogger()->info("Prepending {$repoJson['type']} repository");

            $repository = $repoManager->createRepository($repoJson['type'], $repoJson);

            $repoManager->prependRepository($repository);
            $repositories[] = $repository;
        }
    }
private function addRepository(
        RepositoryManager $repoManager, array &$repositories, $repoJson
    ) {
        if (isset($repoJson['type'])) {
            $this->getLogger()->info("Prepending {$repoJson['type']} repository");

            $repository = $repoManager->createRepository($repoJson['type'], $repoJson);

            $repoManager->prependRepository($repository);
            $repositories[] = $repository;
        }
    }
private function addRepository ( RepositoryManager $ repoManager , array & $ repositories , $ repoJson ) { if ( isset ( $ repoJson [ 'type' ] ) ) { $ this -> getLogger ( ) -> info ( "Prepending {$repoJson['type']} repository" ) ; $ repository = $ repoManager -> createRepository ( $ repoJson [ 'type' ] , $ repoJson ) ; $ repoManager -> prependRepository ( $ repository ) ; $ repositories [ ] = $ repository ; } }
Add a repository to collection of repositories.

@param  \Composer\Repository\RepositoryManager  $repoManager
@param  array                                   $repositories
@param  array                                   $repoJson
Add a repository to collection of repositories .