GitLab
in package
Tags
Table of Contents
- $config : mixed
- $io : mixed
- $process : mixed
- $remoteFilesystem : mixed
- __construct() : mixed
- Constructor.
- authorizeOAuth() : bool
- Attempts to authorize a GitLab domain via OAuth.
- authorizeOAuthInteractively() : bool
- Authorizes a GitLab domain interactively via OAuth.
- createToken() : mixed
Properties
$config
protected
mixed
$config
$io
protected
mixed
$io
$process
protected
mixed
$process
$remoteFilesystem
protected
mixed
$remoteFilesystem
Methods
__construct()
Constructor.
public
__construct(IOInterface $io, Config $config[, ProcessExecutor $process = null ][, RemoteFilesystem $remoteFilesystem = null ]) : mixed
Parameters
- $io : IOInterface
-
The IO instance
- $config : Config
-
The composer configuration
- $process : ProcessExecutor = null
-
Process instance, injectable for mocking
- $remoteFilesystem : RemoteFilesystem = null
-
Remote Filesystem, injectable for mocking
Return values
mixed —authorizeOAuth()
Attempts to authorize a GitLab domain via OAuth.
public
authorizeOAuth(string $originUrl) : bool
Parameters
- $originUrl : string
-
The host this GitLab instance is located at
Return values
bool —true on success
authorizeOAuthInteractively()
Authorizes a GitLab domain interactively via OAuth.
public
authorizeOAuthInteractively(string $scheme, string $originUrl[, string $message = null ]) : bool
Parameters
- $scheme : string
-
Scheme used in the origin URL
- $originUrl : string
-
The host this GitLab instance is located at
- $message : string = null
-
The reason this authorization is required
Tags
Return values
bool —true on success
createToken()
private
createToken(mixed $scheme, mixed $originUrl) : mixed
Parameters
- $scheme : mixed
- $originUrl : mixed