Skip to content

Loading…

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

Closed
vicb opened this Issue · 3 comments

3 participants

@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

@stof
Symfony member

It is mentionned in http://symfony.com/doc/current/components/config/definition.html#node-type but it should indeed be detailed

@vicb

@stof do you mean in the chapter I link in the original issue ;)

@weaverryan weaverryan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.