HomePhorge
Diffusion kolab bb3843732487

Override config mechanism
bb3843732487Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Override config mechanism

Summary:
Can be used to override existing configuration values, without modifying
the existing config files.

Differential Revision: https://git.kolab.org/D4118

Details

Provenance
mollekopfAuthored on Feb 27 2023, 2:50 PM
mollekopfPushed on Mar 7 2023, 9:43 PM
Differential Revision
D4118: Override config mechanism

Event Timeline

Christian Mollekopf <mollekopf@apheleia-it.ch> committed rKbb3843732487: Override config mechanism (authored by Christian Mollekopf <mollekopf@apheleia-it.ch>).Mar 7 2023, 9:42 PM

This does not cover all use-cases. It works properly only for one sub-level of configuration. I found it simpler and more robust if we instead of:

return [
    'imap' => [
        'digits' => 5,
        'default_folders' => [],
    ],
];

use this syntax:

return [
    'imap.digits' => 5,
    'imap.default_folders' => [],
    // setting only the 'table' option below is not possible with your approach
    'queue.connections.database.table' => 'my_jobs',
];

Commit No Longer Exists

This commit no longer exists in the repository.