ConfigurableTrait
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.
at line 48
addConfiguration(string $name, array $configuration)
Adds a configuration.
at line 59
removeConfiguration(string $name)
Removes a configuration.
It will also remove any active connection linked to the configuration.