From: Raphaƫl Gertz Date: Fri, 18 Oct 2024 04:32:09 +0000 (+0200) Subject: Add directory roots X-Git-Tag: 0.0.4~6 X-Git-Url: https://git.rapsys.eu/treebundle/commitdiff_plain/cf5e175bcffa97b9ed658b03911c0c0a02ae9092 Add directory roots Remove favebook apps --- 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();