summaryrefslogtreecommitdiffstats
path: root/Http/Firewall
diff options
context:
space:
mode:
authorWouterJ <waldio.webdesign@gmail.com>2015-11-07 18:29:53 +0100
committerWouterJ <waldio.webdesign@gmail.com>2015-11-07 18:34:16 +0100
commitb78eacaa57a9b0171fd4817b99510ab15f60d778 (patch)
treec6d7b18a19d39a5c808827e8a64b2c410523c292 /Http/Firewall
parent18ad89207b012a47457f4d0d7c6aaa57cb1f926c (diff)
downloadsymfony-security-b78eacaa57a9b0171fd4817b99510ab15f60d778.zip
symfony-security-b78eacaa57a9b0171fd4817b99510ab15f60d778.tar.gz
symfony-security-b78eacaa57a9b0171fd4817b99510ab15f60d778.tar.bz2
Renamed key to secretv2.8.0-BETA1
Diffstat (limited to 'Http/Firewall')
-rw-r--r--Http/Firewall/AnonymousAuthenticationListener.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Http/Firewall/AnonymousAuthenticationListener.php b/Http/Firewall/AnonymousAuthenticationListener.php
index f7feee8..0d60673 100644
--- a/Http/Firewall/AnonymousAuthenticationListener.php
+++ b/Http/Firewall/AnonymousAuthenticationListener.php
@@ -27,14 +27,14 @@ use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
class AnonymousAuthenticationListener implements ListenerInterface
{
private $tokenStorage;
- private $key;
+ private $secret;
private $authenticationManager;
private $logger;
- public function __construct(TokenStorageInterface $tokenStorage, $key, LoggerInterface $logger = null, AuthenticationManagerInterface $authenticationManager = null)
+ public function __construct(TokenStorageInterface $tokenStorage, $secret, LoggerInterface $logger = null, AuthenticationManagerInterface $authenticationManager = null)
{
$this->tokenStorage = $tokenStorage;
- $this->key = $key;
+ $this->secret = $secret;
$this->authenticationManager = $authenticationManager;
$this->logger = $logger;
}
@@ -51,7 +51,7 @@ class AnonymousAuthenticationListener implements ListenerInterface
}
try {
- $token = new AnonymousToken($this->key, 'anon.', array());
+ $token = new AnonymousToken($this->secret, 'anon.', array());
if (null !== $this->authenticationManager) {
$token = $this->authenticationManager->authenticate($token);
}