Skip to content

Meta-value for parameters that need user's configuration #138

Description

@BoShurik

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions