config icon indicating copy to clipboard operation
config copied to clipboard

Meta-value for parameters that need user's configuration

Open BoShurik opened this issue 2 years ago • 0 comments

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

BoShurik avatar Apr 12 '23 08:04 BoShurik