Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / config / Tests / Fixtures / Configuration / ExampleConfiguration.php
index 139b011af1277984c3beafe082cb11d7aa1751e7..3a34f906a367aa77d72871007e2ff857eaa2ad01 100644 (file)
@@ -24,6 +24,7 @@ class ExampleConfiguration implements ConfigurationInterface
         $rootNode
             ->fixXmlConfig('parameter')
             ->fixXmlConfig('connection')
+            ->fixXmlConfig('cms_page')
             ->children()
                 ->booleanNode('boolean')->defaultTrue()->end()
                 ->scalarNode('scalar_empty')->end()
@@ -53,6 +54,9 @@ class ExampleConfiguration implements ConfigurationInterface
                         ->end()
                     ->end()
                 ->end()
+                ->arrayNode('scalar_prototyped')
+                    ->prototype('scalar')->end()
+                ->end()
                 ->arrayNode('parameters')
                     ->useAttributeAsKey('name')
                     ->prototype('scalar')->info('Parameter name')->end()
@@ -65,6 +69,29 @@ class ExampleConfiguration implements ConfigurationInterface
                         ->end()
                     ->end()
                 ->end()
+                ->arrayNode('cms_pages')
+                    ->useAttributeAsKey('page')
+                    ->prototype('array')
+                        ->useAttributeAsKey('locale')
+                        ->prototype('array')
+                            ->children()
+                                ->scalarNode('title')->isRequired()->end()
+                                ->scalarNode('path')->isRequired()->end()
+                            ->end()
+                        ->end()
+                    ->end()
+                ->end()
+                ->arrayNode('pipou')
+                    ->useAttributeAsKey('name')
+                    ->prototype('array')
+                        ->prototype('array')
+                            ->children()
+                                ->scalarNode('didou')
+                                ->end()
+                            ->end()
+                        ->end()
+                    ->end()
+                ->end()
             ->end()
         ;