class DatabaseSettingsRepository implements SettingsRepositoryInterface
Methods
mixed
get(string $key, mixed $default = null)
You generally should use the Settings extender's `default` method instead to register default values.
Details
at
line 16
__construct(ConnectionInterface $database)
at
line 21
array
all()
at
line 26
mixed
get(string $key, mixed $default = null)
You generally should use the Settings extender's `default` method instead to register default values.
You may still need to use the `$default` parameters here in cases where you need to access the default value of a dynamic setting. Reads shared, mutable state: another process can change a setting between two calls, so re-reading the same key may legitimately return a different value.