Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GitLabDriver.php

function GitLabDriver::generateSshUrl

Generate an SSH URL

1 call to GitLabDriver::generateSshUrl()
GitLabDriver::attemptCloneFallback in vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php
@phpstan-impure

File

vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php, line 429

Class

GitLabDriver
Driver for GitLab API, use the Git driver for local checkouts.

Namespace

Composer\Repository\Vcs

Code

protected function generateSshUrl() : string {
    if ($this->hasNonstandardOrigin) {
        return 'ssh://git@' . $this->originUrl . '/' . $this->namespace . '/' . $this->repository . '.git';
    }
    return 'git@' . $this->originUrl . ':' . $this->namespace . '/' . $this->repository . '.git';
}
RSS feed
Powered by Drupal