From 0217242ce20e6ee6ef09cade7e9bee8522a5cb5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 18 Oct 2024 06:32:41 +0200 Subject: [PATCH] Add directory roots Cleanup --- DependencyInjection/RapsysTreeExtension.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/DependencyInjection/RapsysTreeExtension.php b/DependencyInjection/RapsysTreeExtension.php index 09fcb90..3f236f4 100644 --- a/DependencyInjection/RapsysTreeExtension.php +++ b/DependencyInjection/RapsysTreeExtension.php @@ -52,7 +52,20 @@ class RapsysTreeExtension extends Extension implements PrependExtensionInterface //Store flattened array in parameters //XXX: don't flatten rapsystree.site.png key which is required to be an array - foreach($this->flatten($config, $alias, 10, '.', ['rapsystree.copy', 'rapsystree.icon', 'rapsystree.icon.png', 'rapsystree.logo', 'rapsystree.facebook.apps', 'rapsystree.locales', 'rapsystree.languages']) as $k => $v) { + foreach( + $this->flatten( + $config, $alias, 10, '.', [ + 'rapsystree.copy', + 'rapsystree.icon', + 'rapsystree.icon.png', + 'rapsystree.logo', + 'rapsystree.facebook.apps', + 'rapsystree.locales', + 'rapsystree.languages', + 'rapsystree.roots' + ] + ) as $k => $v + ) { $container->setParameter($k, $v); } -- 2.41.1