Properties

$authentications

$authentications : 

Type

Methods

getAuthentications()

getAuthentications() : array

Get all authentication information entered.

Returns

array —

The map of authentication data

hasAuthentication()

hasAuthentication(string  $repositoryName) : boolean

Verify if the repository has a authentication information.

Parameters

string $repositoryName

The unique name of repository

Returns

boolean

getAuthentication()

getAuthentication(string  $repositoryName) : array

Get the username and password of repository.

Parameters

string $repositoryName

The unique name of repository

Returns

array —

The 'username' and 'password'

setAuthentication()

setAuthentication(string  $repositoryName, string  $username, string  $password = null) 

Set the authentication information for the repository.

Parameters

string $repositoryName

The unique name of repository

string $username

The username

string $password

The password

loadConfiguration()

loadConfiguration(\Composer\Config  $config) 

Loads authentications from a config instance

Parameters

\Composer\Config $config

emergency()

emergency(string  $message, array  $context = array()) : null

System is unusable.

Parameters

string $message
array $context

Returns

null

alert()

alert(string  $message, array  $context = array()) : null

Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.

Parameters

string $message
array $context

Returns

null

critical()

critical(string  $message, array  $context = array()) : null

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters

string $message
array $context

Returns

null

error()

error(string  $message, array  $context = array()) : null

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters

string $message
array $context

Returns

null

warning()

warning(string  $message, array  $context = array()) : null

Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Parameters

string $message
array $context

Returns

null

notice()

notice(string  $message, array  $context = array()) : null

Normal but significant events.

Parameters

string $message
array $context

Returns

null

info()

info(string  $message, array  $context = array()) : null

Interesting events.

Example: User logs in, SQL logs.

Parameters

string $message
array $context

Returns

null

debug()

debug(string  $message, array  $context = array()) : null

Detailed debug information.

Parameters

string $message
array $context

Returns

null

log()

log(mixed  $level, string  $message, array  $context = array()) : null

Logs with an arbitrary level.

Parameters

mixed $level
string $message
array $context

Returns

null

checkAndSetAuthentication()

checkAndSetAuthentication(string  $repositoryName, string  $username, string  $password = null) 

Check for overwrite and set the authentication information for the repository.

Parameters

string $repositoryName

The unique name of repository

string $username

The username

string $password

The password