Skip to content

[Config] Add a better doc for enum nodes #2477

Closed
@vicb

Description

@vicb

enum nodes have been added in #1826 but there is no proper documentation on how to use it, an example could be great:

<?php
$parent
    ->enumNode('node-name')
        ->values(array('a', 'b', 'c'))
    ->end()

ref: http://symfony.com/doc/master/components/config/definition.html

/cc @Drak

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConfigactionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions