]> Raphaël G. Git Repositories - treebundle/commitdiff
Remove roots replaced by albums
authorRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:56:32 +0000 (04:56 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 2 Nov 2024 03:56:32 +0000 (04:56 +0100)
DependencyInjection/Configuration.php

index ce4ca90a57edaed39a063474baa9cd327dab5068..ebd98c0594770142de02a57e0a5e5692796b82a7 100644 (file)
@@ -108,7 +108,6 @@ 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',
                        ],
                        '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'
                ];
 
             'title' => 'Veranda\'s gallery system'
                ];
 
@@ -190,13 +189,6 @@ class Configuration implements ConfigurationInterface {
                                        ->end()
                                        ->scalarNode('path')->defaultValue($defaults['path'])->end()
                                        ->scalarNode('root')->cannotBeEmpty()->defaultValue($defaults['root'])->end()
                                        ->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();
                                        ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['title'])->end()
                                ->end()
                        ->end();