]> Raphaël G. Git Repositories - treebundle/commitdiff
Add directory roots
authorRaphaël Gertz <git@rapsys.eu>
Fri, 18 Oct 2024 04:32:09 +0000 (06:32 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 18 Oct 2024 04:32:09 +0000 (06:32 +0200)
Remove favebook apps

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();