DatabaseConfigDefinition
final class DatabaseConfigDefinition extends AbstractConfigDefinition (View source)
Collects named database connection contributions for layered framework configuration.
Properties
| protected mixed[] | $data | from AbstractConfigDefinition |
Methods
Replaces one configuration value at a dot-separated path.
Appends one configuration value at a dot-separated list path.
Starts an empty database configuration contribution for one configuration source.
Returns the stable configuration module key consumed by the database service provider.
Selects the named connection used when consumers request the unqualified database service.
Adds or replaces one named connection contribution without changing other connection entries.
Details
toArray
array
toArray()
No description
set
protected AbstractConfigDefinition
set(string $path, mixed $value)
Replaces one configuration value at a dot-separated path.
append
protected AbstractConfigDefinition
append(string $path, mixed $value)
Appends one configuration value at a dot-separated list path.
create
static DatabaseConfigDefinition
create()
Starts an empty database configuration contribution for one configuration source.
moduleKey
static string
moduleKey()
Returns the stable configuration module key consumed by the database service provider.
defaultConnection
DatabaseConfigDefinition
defaultConnection(string|null $name)
Selects the named connection used when consumers request the unqualified database service.
A null name deliberately clears an earlier default contribution.
connection
DatabaseConfigDefinition
connection(string $name, array $config)
Adds or replaces one named connection contribution without changing other connection entries.