Rapsys Git
/
userbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
576070f
)
Add note about normalisation prevention
author
Raphaël Gertz
<git@rapsys.eu>
Mon, 3 Oct 2022 00:16:18 +0000
(
02:16
+0200)
committer
Raphaël Gertz
<git@rapsys.eu>
Mon, 3 Oct 2022 00:16:18 +0000
(
02:16
+0200)
DependencyInjection/Configuration.php
patch
|
blob
|
history
diff --git
a/DependencyInjection/Configuration.php
b/DependencyInjection/Configuration.php
index 3ceb22ff5dc46648e9f9ce98c4dbea92d8bc8725..1dc51669a73fef32915335b81eb57f6977e06e31 100644
(file)
--- a/
DependencyInjection/Configuration.php
+++ b/
DependencyInjection/Configuration.php
@@
-228,7
+228,9
@@
class Configuration implements ConfigurationInterface {
->defaultValue($defaults['translate'])
->scalarPrototype()->end()
->end()
->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()
->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'])