From 25452031d6a71809f6a862e5a8bc348205cff6c7 Mon Sep 17 00:00:00 2001 From: ruslan-fidesio Date: Tue, 8 Dec 2015 12:44:32 +0100 Subject: [PATCH] If context is defined, it is used instead of the firewall --- cookbook/testing/simulating_authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/testing/simulating_authentication.rst b/cookbook/testing/simulating_authentication.rst index f2e04acd612..986dea5d9f6 100644 --- a/cookbook/testing/simulating_authentication.rst +++ b/cookbook/testing/simulating_authentication.rst @@ -45,7 +45,7 @@ with a request. The following example demonstrates this technique:: { $session = $this->client->getContainer()->get('session'); - $firewall = 'secured_area'; + $firewall = 'secured_area'; // put here firewalls context if defined $token = new UsernamePasswordToken('admin', null, $firewall, array('ROLE_ADMIN')); $session->set('_security_'.$firewall, serialize($token)); $session->save();