Skip to content

Commit 4a9d6a0

Browse files
weyandchweaverryan
authored andcommitted
Update book/security.rst
fixing examples of in_memory provider, "memory" key was missing 
1 parent 3d87527 commit 4a9d6a0

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

book/security.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,8 +1276,9 @@ a new provider that chains the two together:
12761276
chain:
12771277
providers: [in_memory, user_db]
12781278
in_memory:
1279-
users:
1280-
foo: { password: test }
1279+
memory:
1280+
users:
1281+
foo: { password: test }
12811282
user_db:
12821283
entity: { class: Acme\UserBundle\Entity\User, property: username }
12831284
@@ -1292,7 +1293,9 @@ a new provider that chains the two together:
12921293
</chain>
12931294
</provider>
12941295
<provider name="in_memory">
1295-
<user name="foo" password="test" />
1296+
<memory>
1297+
<user name="foo" password="test" />
1298+
</memory>
12961299
</provider>
12971300
<provider name="user_db">
12981301
<entity class="Acme\UserBundle\Entity\User" property="username" />
@@ -1310,8 +1313,10 @@ a new provider that chains the two together:
13101313
),
13111314
),
13121315
'in_memory' => array(
1313-
'users' => array(
1314-
'foo' => array('password' => 'test'),
1316+
'memory' => array(
1317+
'users' => array(
1318+
'foo' => array('password' => 'test'),
1319+
),
13151320
),
13161321
),
13171322
'user_db' => array(

0 commit comments

Comments
 (0)