public function generateScopeBaseNode(ArrayNodeDefinition $rootNode, $scopeNodeName = 'system')
    {
        $contextNode = $rootNode
            ->children()
                ->arrayNode($scopeNodeName)
                    ->info('System configuration. First key is always a siteaccess or siteaccess group name')
                    ->example(
                        array(
                            'my_siteaccess' => array(
                                'preferred_quote' => 'Let there be Light!',
                                'j_aime' => array('le_saucisson'),
                            ),
                            'my_siteaccess_group' => array(
                                'j_aime' => array('la_truite_a_la_vapeur'),
                            ),
                        )
                    )
                    ->useAttributeAsKey('siteaccess_name')
                    ->requiresAtLeastOneElement()
                    ->normalizeKeys(false)
                    ->prototype('array')
                        ->children();

        return $contextNode;
    }
public function generateScopeBaseNode(ArrayNodeDefinition $rootNode, $scopeNodeName = 'system')
    {
        $contextNode = $rootNode
            ->children()
                ->arrayNode($scopeNodeName)
                    ->info('System configuration. First key is always a siteaccess or siteaccess group name')
                    ->example(
                        array(
                            'my_siteaccess' => array(
                                'preferred_quote' => 'Let there be Light!',
                                'j_aime' => array('le_saucisson'),
                            ),
                            'my_siteaccess_group' => array(
                                'j_aime' => array('la_truite_a_la_vapeur'),
                            ),
                        )
                    )
                    ->useAttributeAsKey('siteaccess_name')
                    ->requiresAtLeastOneElement()
                    ->normalizeKeys(false)
                    ->prototype('array')
                        ->children();

        return $contextNode;
    }
public function generateScopeBaseNode ( ArrayNodeDefinition $ rootNode , $ scopeNodeName = 'system' ) { $ contextNode = $ rootNode -> children ( ) -> arrayNode ( $ scopeNodeName ) -> info ( 'System configuration. First key is always a siteaccess or siteaccess group name' ) -> example ( array ( 'my_siteaccess' => array ( 'preferred_quote' => 'Let there be Light!' , 'j_aime' => array ( 'le_saucisson' ) , ) , 'my_siteaccess_group' => array ( 'j_aime' => array ( 'la_truite_a_la_vapeur' ) , ) , ) ) -> useAttributeAsKey ( 'siteaccess_name' ) -> requiresAtLeastOneElement ( ) -> normalizeKeys ( false ) -> prototype ( 'array' ) -> children ( ) ; return $ contextNode ; }
Generates the context node under which context based configuration will be defined.

@param \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition $rootNode Node under which the generated node will be placed.
@param string $scopeNodeName

@return \Symfony\Component\Config\Definition\Builder\NodeBuilder
Generates the context node under which context based configuration will be defined .