diff options
author | Antoine Hérault <antoine.herault@gmail.com> | 2011-06-26 10:21:24 +0200 |
---|---|---|
committer | Antoine Hérault <antoine.herault@gmail.com> | 2011-06-26 10:28:10 +0200 |
commit | 92cf9fb4c77be9b62b3d954d69fd26ec48c55165 (patch) | |
tree | 39848dfe75adce50bbc0dc06511955b292ddddb1 /Http | |
parent | a0f6d2e2b100f2c7c4b2d4618d1d290aaf3e7b92 (diff) | |
download | symfony-security-92cf9fb4c77be9b62b3d954d69fd26ec48c55165.zip symfony-security-92cf9fb4c77be9b62b3d954d69fd26ec48c55165.tar.gz symfony-security-92cf9fb4c77be9b62b3d954d69fd26ec48c55165.tar.bz2 |
[Security] Update access listener constructor's prototype and add tests
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/AccessListener.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/AccessListener.php b/Http/Firewall/AccessListener.php index 0cb45ac..877b6c3 100644 --- a/Http/Firewall/AccessListener.php +++ b/Http/Firewall/AccessListener.php @@ -11,7 +11,7 @@ namespace Symfony\Component\Security\Http\Firewall; -use Symfony\Component\Security\Core\SecurityContext; +use Symfony\Component\Security\Core\SecurityContextInterface; use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface; use Symfony\Component\Security\Http\AccessMap; use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface; @@ -33,7 +33,7 @@ class AccessListener implements ListenerInterface private $authManager; private $logger; - public function __construct(SecurityContext $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMap $map, AuthenticationManagerInterface $authManager, LoggerInterface $logger = null) + public function __construct(SecurityContextInterface $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMap $map, AuthenticationManagerInterface $authManager, LoggerInterface $logger = null) { $this->context = $context; $this->accessDecisionManager = $accessDecisionManager; |