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

isInteractive()

isInteractive() 

{@inheritDoc}

isVerbose()

isVerbose() 

{@inheritDoc}

isVeryVerbose()

isVeryVerbose() 

{@inheritDoc}

isDebug()

isDebug() 

{@inheritDoc}

isDecorated()

isDecorated() 

{@inheritDoc}

write()

write(  $messages,   $newline = true,   $verbosity = self::NORMAL) 

{@inheritDoc}

Parameters

$messages
$newline
$verbosity

writeError()

writeError(  $messages,   $newline = true,   $verbosity = self::NORMAL) 

{@inheritDoc}

Parameters

$messages
$newline
$verbosity

overwrite()

overwrite(  $messages,   $newline = true,   $size = 80,   $verbosity = self::NORMAL) 

{@inheritDoc}

Parameters

$messages
$newline
$size
$verbosity

overwriteError()

overwriteError(  $messages,   $newline = true,   $size = 80,   $verbosity = self::NORMAL) 

{@inheritDoc}

Parameters

$messages
$newline
$size
$verbosity

ask()

ask(  $question,   $default = null) 

{@inheritDoc}

Parameters

$question
$default

askConfirmation()

askConfirmation(  $question,   $default = true) 

{@inheritDoc}

Parameters

$question
$default

askAndValidate()

askAndValidate(  $question,   $validator,   $attempts = false,   $default = null) 

{@inheritDoc}

Parameters

$question
$validator
$attempts
$default

askAndHideAnswer()

askAndHideAnswer(  $question) 

{@inheritDoc}

Parameters

$question

select()

select(  $question,   $choices,   $default,   $attempts = false,   $errorMessage = 'Value "%s" is invalid',   $multiselect = false) 

{@inheritDoc}

Parameters

$question
$choices
$default
$attempts
$errorMessage
$multiselect

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