Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

[OptionsResolver] Support nested options #4833

Copy link
Copy link

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.

Reactions are currently unavailable

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.