8000 [SecurityBundle] Fixed configuration exemple · symfony/symfony@2c7a99b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c7a99b

Browse files
committed
[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 | -
1 parent 282a9c2 commit 2c7a99b

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