summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorDave Marshall <dave@atst.io>2015-01-20 13:50:10 +0000
committerFabien Potencier <fabien.potencier@gmail.com>2015-02-05 11:01:10 +0100
commitac536c333f676c6f55336fcfad2cb414a5a7c206 (patch)
tree2703a619e1c1bd7a7ec4e745770a3b271c4fd4e2 /Http
parent21689b9e96aa820bcb2a2979d04685675497f736 (diff)
downloadsymfony-security-ac536c333f676c6f55336fcfad2cb414a5a7c206.zip
symfony-security-ac536c333f676c6f55336fcfad2cb414a5a7c206.tar.gz
symfony-security-ac536c333f676c6f55336fcfad2cb414a5a7c206.tar.bz2
[Security] Remove ContextListener's onKernelResponse listener as it is used
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/ContextListener.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Http/Firewall/ContextListener.php b/Http/Firewall/ContextListener.php
index 3ea6512..c80fff3 100644
--- a/Http/Firewall/ContextListener.php
+++ b/Http/Firewall/ContextListener.php
@@ -114,6 +114,9 @@ class ContextListener implements ListenerInterface
return;
}
+ $this->dispatcher->removeListener(KernelEvents::RESPONSE, array($this, 'onKernelResponse'));
+ $this->registered = false;
+
if (null !== $this->logger) {
$this->logger->debug('Write SecurityContext in the session');
}