From: Raphaƫl Gertz Date: Mon, 11 Dec 2023 03:01:57 +0000 (+0100) Subject: Skip extra entries from config flattening X-Git-Tag: 0.2~45 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/fdb1d0c921a30fc7a5a3b607e413d9c3c11b63b5 Skip extra entries from config flattening --- 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); } }