[Security] Fixed method calls on EventDispatcher

This commit is contained in:
Bernhard Schussek 2011-03-17 12:34:30 +01:00
parent 5f14d8d6aa
commit ffdc879624
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class ContextListener implements ListenerInterface
$this->contextKey = $contextKey;
if (null !== $dispatcher) {
$dispatcher->connect(Events::onCoreResponse, $this);
$dispatcher->addEventListener(Events::onCoreResponse, $this);
}
}

View File

@ -58,7 +58,7 @@ class ExceptionListener
*/
public function register(EventDispatcherInterface $dispatcher)
{
$dispatcher->connect(Events::onCoreException, $this);
$dispatcher->addEventListener(Events::onCoreException, $this);
}
/**