8000 merged branch lyrixx/fix-security-config (PR #7528) · symfony/symfony@e57b4e5 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit e57b4e5

Browse files
committed
merged branch lyrixx/fix-security-config (PR #7528)
This PR was merged into the 2.1 branch. Discussion ---------- [2.1][SecurityBundle] Fixed configuration exemple | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 2c7a99b [SecurityBundle] Fixed configuration exemple
2 parents b70578f + 2c7a99b commit e57b4e5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,15 @@ private function addProvidersSection(ArrayNodeDefinition $rootNode)
301301
->children()
302302
->arrayNode('providers')
303303
->example(array(
304-
'memory' => array(
305-
'name' => 'memory',
304+
'my_memory_provider' => array(
306305
'memory' => array(
307306
'users' => array(
308307
'foo' => array('password' => 'foo', 'roles' => 'ROLE_USER'),
309308
'bar' => array('password' => 'bar', 'roles' => '[ROLE_USER, ROLE_ADMIN]')
310309
),
311310
)
312311
),
313-
'entity' => array('entity' => array('class' => 'SecurityBundle:User', 'property' => 'username'))
312+
'my_entity_provider' => array('entity' => array('class' => 'SecurityBundle:User', 'property' => 'username'))
314313
))
315314
->disallowNewKeysInSubsequentConfigs()
316315
->isRequired()

0 commit comments

Comments
 (0)
0