\Composer\UtilGitLab

Summary

Methods
Properties
Constants
__construct()
authorizeOAuth()
authorizeOAuthInteractively()
No public properties found
No constants found
No protected methods found
$io
$config
$process
$remoteFilesystem
N/A
createToken()
No private properties found
N/A

Properties

$io

$io : 

Type

$config

$config : 

Type

$process

$process : 

Type

$remoteFilesystem

$remoteFilesystem : 

Type

Methods

authorizeOAuth()

authorizeOAuth(string  $originUrl) : boolean

Attempts to authorize a GitLab domain via OAuth.

Parameters

string $originUrl

The host this GitLab instance is located at

Returns

boolean —

true on success

authorizeOAuthInteractively()

authorizeOAuthInteractively(string  $scheme, string  $originUrl, string  $message = null) : boolean

Authorizes a GitLab domain interactively via OAuth.

Parameters

string $scheme

Scheme used in the origin URL

string $originUrl

The host this GitLab instance is located at

string $message

The reason this authorization is required

Throws

\RuntimeException
\Composer\Downloader\TransportException|\Exception

Returns

boolean —

true on success

createToken()

createToken(  $scheme,   $originUrl) 

Parameters

$scheme
$originUrl