[Security] Fixed method calls on EventDispatcher
This commit is contained in:
parent
5f14d8d6aa
commit
ffdc879624
@ -49,7 +49,7 @@ class ContextListener implements ListenerInterface
|
||||
$this->contextKey = $contextKey;
|
||||
|
||||
if (null !== $dispatcher) {
|
||||
$dispatcher->connect(Events::onCoreResponse, $this);
|
||||
$dispatcher->addEventListener(Events::onCoreResponse, $this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ class ExceptionListener
|
||||
*/
|
||||
public function register(EventDispatcherInterface $dispatcher)
|
||||
{
|
||||
$dispatcher->connect(Events::onCoreException, $this);
|
||||
$dispatcher->addEventListener(Events::onCoreException, $this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user