From: Raphaƫl Gertz Date: Fri, 10 Nov 2023 11:22:30 +0000 (+0100) Subject: Remove locales key X-Git-Tag: 0.3.0~4 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/359ca85c22e97645a413d25583c801ddd7f3ea57?hp=e76a1923e813fdf1fd24115ad0f976d2df58cc6f Remove locales key --- diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 1dc5166..719e952 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -69,7 +69,6 @@ class Configuration implements ConfigurationInterface { ] ], 'translate' => [], - 'locales' => '%kernel.translator.fallbacks%', '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) - ->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'])