We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 812dbfd commit 2545203Copy full SHA for 2545203
cookbook/testing/simulating_authentication.rst
@@ -45,7 +45,7 @@ with a request. The following example demonstrates this technique::
45
{
46
$session = $this->client->getContainer()->get('session');
47
48
- $firewall = 'secured_area';
+ $firewall = 'secured_area'; // put here firewalls context if defined
49
$token = new UsernamePasswordToken('admin', null, $firewall, array('ROLE_ADMIN'));
50
$session->set('_security_'.$firewall, serialize($token));
51
$session->save();
0 commit comments