From cf5e175bcffa97b9ed658b03911c0c0a02ae9092 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 18 Oct 2024 06:32:09 +0200 Subject: [PATCH] Add directory roots Remove favebook apps --- DependencyInjection/Configuration.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(); -- 2.41.1