Composer API
Class

Composer\IO\BaseIO

abstract class BaseIO implements IOInterface, LoggerInterface

Methods

array getAuthentications()

Get all authentication information entered.

bool hasAuthentication(string $repositoryName)

Verify if the repository has a authentication information.

array getAuthentication(string $repositoryName)

Get the username and password of repository.

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

Set the authentication information for the repository.

loadConfiguration(Config $config)

Loads authentications from a config instance

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

System is unusable.

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

Action must be taken immediately.

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

Critical conditions.

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

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

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

Exceptional occurrences that are not errors.

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

Normal but significant events.

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

Interesting events.

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

Detailed debug information.

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

Logs with an arbitrary level.

Details

at line 27
public array getAuthentications()

Get all authentication information entered.

Return Value

array The map of authentication data

at line 35
public bool hasAuthentication(string $repositoryName)

Verify if the repository has a authentication information.

Parameters

string $repositoryName The unique name of repository

Return Value

bool

at line 43
public array getAuthentication(string $repositoryName)

Get the username and password of repository.

Parameters

string $repositoryName The unique name of repository

Return Value

array The 'username' and 'password'

at line 55
public 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

at line 88
public loadConfiguration(Config $config)

Loads authentications from a config instance

Parameters

Config $config

at line 133
public null emergency(string $message, array $context = array())

System is unusable.

Parameters

string $message
array $context

Return Value

null

at line 148
public null alert(string $message, array $context = array())

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

Return Value

null

at line 162
public null critical(string $message, array $context = array())

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters

string $message
array $context

Return Value

null

at line 175
public null error(string $message, array $context = array())

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

Parameters

string $message
array $context

Return Value

null

at line 190
public null warning(string $message, array $context = array())

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

Return Value

null

at line 202
public null notice(string $message, array $context = array())

Normal but significant events.

Parameters

string $message
array $context

Return Value

null

at line 216
public null info(string $message, array $context = array())

Interesting events.

Example: User logs in, SQL logs.

Parameters

string $message
array $context

Return Value

null

at line 228
public null debug(string $message, array $context = array())

Detailed debug information.

Parameters

string $message
array $context

Return Value

null

at line 241
public null log(mixed $level, string $message, array $context = array())

Logs with an arbitrary level.

Parameters

mixed $level
string $message
array $context

Return Value

null