]> Raphaël G. Git Repositories - airbundle/commitdiff
Add locales field which will store a copy of kernel.translator.fallbacks
authorRaphaël Gertz <git@rapsys.eu>
Thu, 1 Feb 2024 03:22:51 +0000 (04:22 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 1 Feb 2024 03:22:51 +0000 (04:22 +0100)
DependencyInjection/Configuration.php

index e994ada85fddd58af8fb9947826772f9937ae108..aa71eb7a12ca173d62c007ea10859663994ec252 100644 (file)
@@ -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();