X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/1ccb85cd75086f5ce53735e293714bc2fcf155d4..0217242ce20e6ee6ef09cade7e9bee8522a5cb5d:/DependencyInjection/Configuration.php diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index a01863c..ce4ca90 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -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();