[Security] fixed in_memory provider example

This commit is contained in:
Arnaud Le Blanc 2012-07-06 11:40:37 +02:00
parent 6b5be0b971
commit 8997853dbd

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'))