config
config copied to clipboard
Meta-value for parameters that need user's configuration
For example: https://github.com/yiisoft/yii-cycle/blob/master/config/params.php#L35
'connections' => []
needs to be configured
'connections' => [
// Example SQLite connection:
'sqlite' => new \Cycle\Database\Config\SQLiteDriverConfig(
connection: new \Cycle\Database\Config\SQLite\DsnConnectionConfig(
// see https://www.php.net/manual/pdo.construct.php, DSN for connection syntax
dsn: 'sqlite:runtime/database.db'
)
),
],
Nice to have meta-value like
'connections' => new ConfigurationNeeded([
'sqlite' => '...'
])
When config-plugin meets this value it may throw error that application is not configured properly.
Additionally it may prompt values during composer install phase