Skip to content

[RFC]: Configuration Structural Change #59

@tyrsson

Description

@tyrsson

Proposed Version

3.0.0

Basic Information

N/A

Background

N/A

Considerations

This of course will affect all satellite packages. It just allows for easier targeting of configuration.

Proposal(s)

This proposal is to change the expected configuration array to the following. The provided options are not exhaustive. This issue should be used for tracking all possible options. Some of the ones listed as "new" below are not actually new but they are not being passed the same way as prior versions expected.

return [
    'db' => [
        'driver'     => 'Mysqli', // See phpdb-adapter-mysql AdapterManagerDelegator for all supported values.
        //'driver'     => Mysqli::class, // new config value
        'connection' => [ // new config value
            //'dsn'      => 'mysql:dbname=laminas_db_test;host=localhost;port=3306;charset=utf8',
            'username' => 'username', // user, username
            'password' => 'passwd', // pass, password
            'hostname' => 'localhost', // host, hostname
            'port'     => '3306',
            'charset'  => 'utf8',
            'dbname'   => 'laminasdb_test', // dbname, database, db
            'driver_options' => [], // driver_options
        ],
        'options'    => [ // new config value,
            'buffer_results' => false, // buffer_results, gets passed to Statement, default is false
        ],
        //'profiler' => Profiler::class|true, // new config value
    ],
];

Appendix/Additional Info

N/A

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

Status

Todo

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions