merged branch arnaud-lb/memory-example-fix (PR #4769)

Commits
-------

8997853 [Security] fixed in_memory provider example

Discussion
----------

[Security] fixed in_memory provider example

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes

This fixes the in_memory provider configuration example shown by config:dump-reference

---------------------------------------------------------------------------

by stof at 2012-07-06T11:07:50Z

👍
This commit is contained in:
Fabien Potencier 2012-07-08 10:05:28 +02:00
commit b8f99ee19e

View File

@ -303,9 +303,11 @@ class MainConfiguration implements ConfigurationInterface
->example(array( ->example(array(
'memory' => array( 'memory' => array(
'name' => 'memory', 'name' => 'memory',
'users' => array( 'memory' => array(
'foo' => array('password' => 'foo', 'roles' => 'ROLE_USER'), 'users' => array(
'bar' => array('password' => 'bar', 'roles' => '[ROLE_USER, ROLE_ADMIN]') 'foo' => array('password' => 'foo', 'roles' => 'ROLE_USER'),
'bar' => array('password' => 'bar', 'roles' => '[ROLE_USER, ROLE_ADMIN]')
),
) )
), ),
'entity' => array('entity' => array('class' => 'SecurityBundle:User', 'property' => 'username')) 'entity' => array('entity' => array('class' => 'SecurityBundle:User', 'property' => 'username'))