Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[OptionsResolver] Support nested options #4833

Closed
@webmozart

Description

@webmozart

It is currently not possible to configure nested options. For example:

$resolver->setDefaults(array(
    'db' => array(
        'dsn' => null,
        'user' => 'root,
        'password' => '',
        'port': 3306,
    ),
));

It is not possible to resolve this configuration in the following way:

$resolver->resolve(array(
    'db' => array(
        'dsn' => ...
    ),
));

because now the other default values under "db" will be dropped. Also, it is not possible to specify allowed values or types for the nested options.

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