Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[OptionsResolver] Support nested options #4833

Copy link
Copy link
Closed
@webmozart

Description

@webmozart
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.