summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Schussek <bernhard.schussek@symfony-project.com>2011-03-17 12:34:30 +0100
committerBernhard Schussek <bernhard.schussek@symfony-project.com>2011-03-17 12:34:30 +0100
commita7c5a4f08c35edf4e2c2362a403aab228078e9f8 (patch)
treeb9b07c4f0f0861f1b50c6ce186929b08c00f0f47
parent2194399ddf1b18d1509aabfb744d263ac40d1ecd (diff)
downloadsymfony-security-a7c5a4f08c35edf4e2c2362a403aab228078e9f8.zip
symfony-security-a7c5a4f08c35edf4e2c2362a403aab228078e9f8.tar.gz
symfony-security-a7c5a4f08c35edf4e2c2362a403aab228078e9f8.tar.bz2
[Security] Fixed method calls on EventDispatcher
-rw-r--r--Http/Firewall/ContextListener.php2
-rw-r--r--Http/Firewall/ExceptionListener.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/ContextListener.php b/Http/Firewall/ContextListener.php
index 332ae5d..cc49c8e 100644
--- a/Http/Firewall/ContextListener.php
+++ b/Http/Firewall/ContextListener.php
@@ -49,7 +49,7 @@ class ContextListener implements ListenerInterface
$this->contextKey = $contextKey;
if (null !== $dispatcher) {
- $dispatcher->connect(Events::onCoreResponse, $this);
+ $dispatcher->addEventListener(Events::onCoreResponse, $this);
}
}
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php
index 153aec8..4465569 100644
--- a/Http/Firewall/ExceptionListener.php
+++ b/Http/Firewall/ExceptionListener.php
@@ -58,7 +58,7 @@ class ExceptionListener
*/
public function register(EventDispatcherInterface $dispatcher)
{
- $dispatcher->connect(Events::onCoreException, $this);
+ $dispatcher->addEventListener(Events::onCoreException, $this);
}
/**