diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2012-11-06 11:06:32 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2012-11-06 11:06:32 +0100 |
commit | ed7bf27ba7381a7f96c8616385e4815f17468d35 (patch) | |
tree | 387d6fe526328dad80dfc85a6650259a7ca769c2 /Http/Firewall.php | |
parent | 0a2aeb038b5ca2220c3ab7a46c591f809137bcd3 (diff) | |
download | symfony-security-ed7bf27ba7381a7f96c8616385e4815f17468d35.zip symfony-security-ed7bf27ba7381a7f96c8616385e4815f17468d35.tar.gz symfony-security-ed7bf27ba7381a7f96c8616385e4815f17468d35.tar.bz2 |
changed the Firewall to be a proper subscriber
Diffstat (limited to 'Http/Firewall.php')
-rw-r--r-- | Http/Firewall.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Http/Firewall.php b/Http/Firewall.php index a590fd9..e083fdb 100644 --- a/Http/Firewall.php +++ b/Http/Firewall.php @@ -12,8 +12,10 @@ namespace Symfony\Component\Security\Http; use Symfony\Component\HttpKernel\HttpKernelInterface; +use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\EventDispatcher\EventDispatcherInterface; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * Firewall uses a FirewallMap to register security listeners for the given @@ -25,7 +27,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface; * * @author Fabien Potencier <fabien@symfony.com> */ -class Firewall +class Firewall implements EventSubscriberInterface { private $map; private $dispatcher; @@ -68,4 +70,9 @@ class Firewall } } } + + public static function getSubscribedEvents() + { + return array(KernelEvents::REQUEST => array('onKernelRequest', 8)); + } } |