From: Raphaƫl Gertz Date: Mon, 3 Oct 2022 00:16:18 +0000 (+0200) Subject: Add note about normalisation prevention X-Git-Tag: 0.2.1~3 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/2f0ee1d8679c0a5de721520a4cc05de72aae9db3?ds=sidebyside Add note about normalisation prevention --- diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 3ceb22f..1dc5166 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -228,7 +228,9 @@ class Configuration implements ConfigurationInterface { ->defaultValue($defaults['translate']) ->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'])