From a68cef66d023fb2590a2ef5473f1d4a96b825ad6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 1 Feb 2024 04:22:51 +0100 Subject: [PATCH] Add locales field which will store a copy of kernel.translator.fallbacks --- DependencyInjection/Configuration.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index e994ada..aa71eb7 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -71,7 +71,8 @@ class Configuration implements ConfigurationInterface { 'contact' => [ 'name' => 'John Doe', 'mail' => 'contact@example.com' - ] + ], + 'locales' => '%kernel.translator.fallbacks%' ]; //Here we define the parameters that are allowed to configure the bundle. @@ -114,6 +115,7 @@ class Configuration implements ConfigurationInterface { ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end() ->end() ->end() + ->scalarNode('locales')->cannotBeEmpty()->defaultValue($defaults['locales'])->end() ->end() ->end(); -- 2.41.1