Pyrech\ComposerChangelogs\Factory::createUrlGenerators PHP Метод

createUrlGenerators() публичный статический Метод

public static createUrlGenerators ( array $gitlabHosts = [] ) : Pyrech\ComposerChangelogs\UrlGenerator\UrlGenerator[]
$gitlabHosts array
Результат Pyrech\ComposerChangelogs\UrlGenerator\UrlGenerator[]
    public static function createUrlGenerators(array $gitlabHosts = [])
    {
        $hosts = [new \Pyrech\ComposerChangelogs\UrlGenerator\GithubUrlGenerator(), new \Pyrech\ComposerChangelogs\UrlGenerator\BitbucketUrlGenerator(), new \Pyrech\ComposerChangelogs\UrlGenerator\WordPressUrlGenerator()];
        foreach ($gitlabHosts as $gitlabHost) {
            $hosts[] = new \Pyrech\ComposerChangelogs\UrlGenerator\GitlabUrlGenerator($gitlabHost);
        }
        return $hosts;
    }