Skip to content

Commit 8d03332

Browse files
committed
[SecurityBundle] Don't normalize keys of in-memory users
1 parent 0e92e0a commit 8d03332

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

UPGRADE-3.3.md

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ SecurityBundle
113113
* `UserPasswordEncoderCommand::getContainer()` is deprecated, and this class won't
114114
extend `ContainerAwareCommand` nor implement `ContainerAwareInterface` anymore in 4.0.
115115

116+
* [BC BREAK] Keys of the `users` node for `in_memory` user provider are no longer normalized.
117+
116118
Serializer
117119
----------
118120

src/Symfony/Bundle/SecurityBundle/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CHANGELOG
99
* Deprecated `UserPasswordEncoderCommand::getContainer()` and relying on the
1010
`ContainerAwareInterface` interface for this command.
1111
* Deprecated the `FirewallMap::$map` and `$container` properties.
12+
* [BC BREAK] Keys of the `users` node for `in_memory` user provider are no longer normalized.
1213

1314
3.2.0
1415
-----

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/UserProvider/InMemoryFactory.php

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function addConfiguration(NodeDefinition $node)
5252
->children()
5353
->arrayNode('users')
5454
->useAttributeAsKey('name')
55+
->normalizeKeys(false)
5556
->prototype('array')
5657
->children()
5758
->scalarNode('password')->defaultValue(uniqid('', true))->end()

0 commit comments

Comments
 (0)