From fdb1d0c921a30fc7a5a3b607e413d9c3c11b63b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 04:01:57 +0100 Subject: [PATCH] Skip extra entries from config flattening --- DependencyInjection/RapsysBlogExtension.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/RapsysBlogExtension.php b/DependencyInjection/RapsysBlogExtension.php index d464df4..26330bf 100644 --- a/DependencyInjection/RapsysBlogExtension.php +++ b/DependencyInjection/RapsysBlogExtension.php @@ -27,7 +27,8 @@ class RapsysBlogExtension extends Extension implements PrependExtensionInterface /** * Prepend the configuration * - * @desc Preload the configuration to allow sourcing as parameters + * Preload the configuration to allow sourcing as parameters + * * {@inheritdoc} */ public function prepend(ContainerBuilder $container): void { @@ -51,7 +52,7 @@ class RapsysBlogExtension extends Extension implements PrependExtensionInterface //Store flattened array in parameters //XXX: don't flatten rapsys_blog.icon.png key which is required to be an array - foreach($this->flatten($config, $this->getAlias(), 10, '.', ['rapsys_blog.icon.png', 'rapsys_blog.facebook.apps', 'rapsys_blog.locales', 'rapsys_blog.languages']) as $k => $v) { + foreach($this->flatten($config, $this->getAlias(), 10, '.', ['rapsys_blog.contact', 'rapsys_blog.copy', 'rapsys_blog.icon', 'rapsys_blog.icon.png', 'rapsys_blog.logo', 'rapsys_blog.facebook.apps', 'rapsys_blog.locales', 'rapsys_blog.languages']) as $k => $v) { $container->setParameter($k, $v); } } -- 2.41.1