]> Raphaƫl G. Git Repositories - treebundle/blobdiff - DependencyInjection/Configuration.php
Version 0.0.4
[treebundle] / DependencyInjection / Configuration.php
index a01863cc931106ca20aacfab37df63308cb6f776..ce4ca90a57edaed39a063474baa9cd327dab5068 100644 (file)
@@ -46,7 +46,7 @@ class Configuration implements ConfigurationInterface {
                        ],
                        'donate' => 'https://paypal.me/milongaraphael',
                        'facebook' => [
-                               'apps' => [ 3728770287223690 ],
+                               'apps' => [],
                                'height' => 630,
                                'width' => 1200
                        ],
@@ -108,6 +108,7 @@ class Configuration implements ConfigurationInterface {
                        ],
                        'path' => is_link(($prefix = is_dir('public') ? './public/' : './').($link = 'bundles/'.str_replace('_', '', $alias))) && is_dir(realpath($prefix.$link)) || is_dir($prefix.$link) ? $link : dirname(__DIR__).'/Resources/public',
                        'root' => 'rapsystree',
+                       'roots' => [],
             'title' => 'Veranda\'s gallery system'
                ];
 
@@ -189,6 +190,13 @@ class Configuration implements ConfigurationInterface {
                                        ->end()
                                        ->scalarNode('path')->defaultValue($defaults['path'])->end()
                                        ->scalarNode('root')->cannotBeEmpty()->defaultValue($defaults['root'])->end()
+                                       #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false)
+                                       #->scalarNode('roots')->cannotBeEmpty()->defaultValue($defaults['roots'])->end()
+                                       ->variableNode('roots')
+                                               ->treatNullLike([])
+                                               ->defaultValue($defaults['roots'])
+                                               #->scalarPrototype()->end()
+                                       ->end()
                                        ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['title'])->end()
                                ->end()
                        ->end();