Skip to content

Commit 2545203

Browse files
ruslan-fidesiowouterj
authored andcommitted
If context is defined, it is used instead of the firewall
1 parent 812dbfd commit 2545203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/testing/simulating_authentication.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ with a request. The following example demonstrates this technique::
4545
{
4646
$session = $this->client->getContainer()->get('session');
4747

48-
$firewall = 'secured_area';
48+
$firewall = 'secured_area'; // put here firewalls context if defined
4949
$token = new UsernamePasswordToken('admin', null, $firewall, array('ROLE_ADMIN'));
5050
$session->set('_security_'.$firewall, serialize($token));
5151
$session->save();

0 commit comments

Comments
 (0)