Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BoShurik opened this issue Apr 12, 2023 · 0 comments
Open

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

BoShurik opened this issue Apr 12, 2023 · 0 comments
Labels
type:enhancement Enhancement

Comments

@BoShurik
Copy link

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

@samdark samdark added the type:enhancement Enhancement label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants