trait ConfigurableTrait

Configurable trait.

Properties

protected string $default Name of the default connection.
protected array $configurations Configurations.

Methods

__construct(string $default, array $configurations)

Constructor.

addConfiguration(string $name, array $configuration)

Adds a configuration.

removeConfiguration(string $name)

Removes a configuration.

Details

at line 35
__construct(string $default, array $configurations)

Constructor.

Parameters

string $default Default connection name
array $configurations Configurations

at line 48
addConfiguration(string $name, array $configuration)

Adds a configuration.

Parameters

string $name Connection name
array $configuration Configuration

at line 59
removeConfiguration(string $name)

Removes a configuration.

It will also remove any active connection linked to the configuration.

Parameters

string $name Connection name