summaryrefslogtreecommitdiffstats
path: root/Http/Firewall.php
diff options
context:
space:
mode:
authorKris Wallsmith <kris.wallsmith@gmail.com>2013-08-08 14:41:21 -0700
committerKris Wallsmith <kris.wallsmith@gmail.com>2013-08-08 14:41:21 -0700
commita19068947dca7cb60616b838a0d451ca61e40fe5 (patch)
tree50a598889fcf70bbfc9d7605a9eeba468f5a413c /Http/Firewall.php
parentd362b9c7c6deb166a12e678d6934b02f9cb5a48d (diff)
downloadsymfony-security-a19068947dca7cb60616b838a0d451ca61e40fe5.zip
symfony-security-a19068947dca7cb60616b838a0d451ca61e40fe5.tar.gz
symfony-security-a19068947dca7cb60616b838a0d451ca61e40fe5.tar.bz2
[HttpKernel] added $event->isMasterRequest()
Diffstat (limited to 'Http/Firewall.php')
-rw-r--r--Http/Firewall.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Http/Firewall.php b/Http/Firewall.php
index 31c1da5..36df81a 100644
--- a/Http/Firewall.php
+++ b/Http/Firewall.php
@@ -11,7 +11,6 @@
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;
@@ -51,7 +50,7 @@ class Firewall implements EventSubscriberInterface
*/
public function onKernelRequest(GetResponseEvent $event)
{
- if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
+ if (!$event->isMasterRequest()) {
return;
}