Nested prototypes in Symfony2 Configuration Nested prototypes in Symfony2 Configuration symfony symfony

Nested prototypes in Symfony2 Configuration


Checked in symfony 2.2, nesting works.

Don't use ->children() between nested ->prototype():

$rootNode->children()   ->arrayNode('foo')      ->prototype('array')         ->prototype('array')             ->children()                ->scalarNode('foo');