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

Closed
vicb opened this Issue Apr 7, 2013 · 3 comments

Comments

Projects
None yet
3 participants
@vicb
Contributor

vicb commented Apr 7, 2013

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

This comment has been minimized.

Show comment
Hide comment
@stof

stof Apr 7, 2013

Member

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

Member

stof commented Apr 7, 2013

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

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Apr 7, 2013

@vicb

This comment has been minimized.

Show comment
Hide comment
@vicb

vicb Apr 7, 2013

Contributor

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

Contributor

vicb commented Apr 7, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment