diff options
author | Bernhard Schussek <bernhard.schussek@symfony-project.com> | 2011-03-07 15:42:52 +0100 |
---|---|---|
committer | Bernhard Schussek <bernhard.schussek@symfony-project.com> | 2011-03-07 19:16:05 +0100 |
commit | 4a5d6729bc8c7f4adc89c153606617390bb24ca4 (patch) | |
tree | e31633b8ef04acfc224c6649d4656e380b6f6b25 /Http/Firewall.php | |
parent | db1564445584b2bf354558534efa6532e8cb3959 (diff) | |
download | symfony-security-4a5d6729bc8c7f4adc89c153606617390bb24ca4.zip symfony-security-4a5d6729bc8c7f4adc89c153606617390bb24ca4.tar.gz symfony-security-4a5d6729bc8c7f4adc89c153606617390bb24ca4.tar.bz2 |
Renamed EventArgs classes and adapted remaining code to EventManager
The only missing part is ContainerAwareEventManager::addEventSubscriberService(),
because I'm not sure how to find out the class name of a service in the DIC.
Also, inline documentation of this code needs to be finished once it is accepted.
Diffstat (limited to 'Http/Firewall.php')
-rw-r--r-- | Http/Firewall.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Http/Firewall.php b/Http/Firewall.php index 25d6b48..8fe2bcb 100644 --- a/Http/Firewall.php +++ b/Http/Firewall.php @@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Http; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Events; -use Symfony\Component\HttpKernel\Event\RequestEventArgs; +use Symfony\Component\HttpKernel\Event\GetResponseEventArgs; use Symfony\Component\HttpFoundation\Request; use Doctrine\Common\EventManager; @@ -48,9 +48,9 @@ class Firewall /** * Handles security. * - * @param RequestEventArgs $eventArgs An RequestEventArgs instance + * @param GetResponseEventArgs $eventArgs An GetResponseEventArgs instance */ - public function onCoreRequest(RequestEventArgs $eventArgs) + public function onCoreRequest(GetResponseEventArgs $eventArgs) { if (HttpKernelInterface::MASTER_REQUEST !== $eventArgs->getRequestType()) { return; @@ -83,7 +83,7 @@ class Firewall } // initiate the listener chain - $securityEventArgs = new RequestEventArgs($eventArgs->getKernel(), $request, $eventArgs->getRequestType()); + $securityEventArgs = new GetResponseEventArgs($eventArgs->getKernel(), $request, $eventArgs->getRequestType()); $this->evm->dispatchEvent($securityEventArgs); if ($securityEventArgs->hasResponse()) { |