Skip to content

Commit 313e6e8

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

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

UPGRADE-3.3.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Process
9494
Security
9595
--------
9696

97-
* The `RoleInterface` has been deprecated. Extend the `Symfony\Component\Security\Core\Role\Role`
97+
* [BC BREAK] The `RoleInterface` has been deprecated. Extend the `Symfony\Component\Security\Core\Role\Role`
9898
class in your custom role implementations instead.
9999

100100
SecurityBundle
@@ -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+
* 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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)