abstract class BaseIO implements IOInterface, LoggerInterface (View source)

Properties

protected $authentications

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.

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

Check for overwrite and 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

array getAuthentications()

Get all authentication information entered.

Return Value

array The map of authentication data

bool hasAuthentication(string $repositoryName)

Verify if the repository has a authentication information.

Parameters

string $repositoryName The unique name of repository

Return Value

bool

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'

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

protected 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

loadConfiguration(Config $config)

Loads authentications from a config instance

Parameters

Config $config

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

System is unusable.

Parameters

string $message
array $context

Return Value

null

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

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

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters

string $message
array $context

Return Value

null

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

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

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

Normal but significant events.

Parameters

string $message
array $context

Return Value

null

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

Interesting events.

Example: User logs in, SQL logs.

Parameters

string $message
array $context

Return Value

null

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

Detailed debug information.

Parameters

string $message
array $context

Return Value

null

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

Logs with an arbitrary level.

Parameters

mixed $level
string $message
array $context

Return Value

null