URL_REGEX
URL_REGEX = '#^(?:(?P<scheme>https?)://(?P<domain>.+?)(?::(?P<port>[0-9]+))?/|git@(?P<domain2>[^:]+):)(?P<parts>.+)/(?P<repo>[^/]+?)(?:\.git|/)?$#'
Driver for GitLab API, use the Git driver for local checkouts.
$io : \Composer\IO\IOInterface
$config : \Composer\Config
$process : \Composer\Util\ProcessExecutor
$remoteFilesystem : \Composer\Util\RemoteFilesystem
$cache : \Composer\Cache
$gitDriver : \Composer\Repository\Vcs\GitDriver
Git Driver
__construct(array $repoConfig, \Composer\IO\IOInterface $io, \Composer\Config $config, \Composer\Util\ProcessExecutor $process = null, \Composer\Util\RemoteFilesystem $remoteFilesystem = null)
Constructor.
array | $repoConfig | The repository configuration |
\Composer\IO\IOInterface | $io | The IO instance |
\Composer\Config | $config | The composer configuration |
\Composer\Util\ProcessExecutor | $process | Process instance, injectable for mocking |
\Composer\Util\RemoteFilesystem | $remoteFilesystem | Remote Filesystem, injectable for mocking |
hasComposerFile(string $identifier) : boolean
Return true if the repository has a composer file for a given identifier, false otherwise.
string | $identifier | Any identifier to a specific branch/tag/commit |
Whether the repository has a composer file for a given identifier.
supports(\Composer\IO\IOInterface $io, \Composer\Config $config, $url, $deep = false)
Uses the config `gitlab-domains` to see if the driver supports the url for the repository given.
{@inheritDoc}
\Composer\IO\IOInterface | $io | |
\Composer\Config | $config | |
$url | ||
$deep |