]> Raphaël G. Git Repositories - userbundle/commitdiff
Remove locales key
authorRaphaël Gertz <git@rapsys.eu>
Fri, 10 Nov 2023 11:22:30 +0000 (12:22 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 10 Nov 2023 11:22:30 +0000 (12:22 +0100)
DependencyInjection/Configuration.php

index 1dc51669a73fef32915335b81eb57f6977e06e31..719e95274b37220bf97834d32201f2fed0a34024 100644 (file)
@@ -69,7 +69,6 @@ class Configuration implements ConfigurationInterface {
                                ]
                        ],
                        'translate' => [],
                                ]
                        ],
                        'translate' => [],
-                       'locales' => '%kernel.translator.fallbacks%',
                        'languages' => [
                                'en_gb' => 'English'
                        ],
                        'languages' => [
                                'en_gb' => 'English'
                        ],
@@ -229,8 +228,6 @@ class Configuration implements ConfigurationInterface {
                                                ->scalarPrototype()->end()
                                        ->end()
                                        #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false)
                                                ->scalarPrototype()->end()
                                        ->end()
                                        #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false)
-                                       ->scalarNode('locales')->cannotBeEmpty()->defaultValue($defaults['locales'])->end()
-                                       #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false)
                                        ->arrayNode('languages')
                                                ->treatNullLike([])
                                                ->defaultValue($defaults['languages'])
                                        ->arrayNode('languages')
                                                ->treatNullLike([])
                                                ->defaultValue($defaults['languages'])