summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
/**