[Security] Fixed calls to EventDispatcher::dispatchEvent()

This commit is contained in:
Bernhard Schussek 2011-03-13 21:30:50 +01:00
parent 06c682b4fb
commit 932f3b1f06
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ abstract class AbstractPreAuthenticatedListener implements ListenerInterface
if (null !== $this->dispatcher) {
$loginEvent = new InteractiveLoginEvent($request, $token);
$this->dispatcher->notify(Events::onSecurityInteractiveLogin, $loginEvent);
$this->dispatcher->dispatchEvent(Events::onSecurityInteractiveLogin, $loginEvent);
}
} catch (AuthenticationException $failed) {
$this->securityContext->setToken(null);

View File

@ -152,7 +152,7 @@ class SwitchUserListener implements ListenerInterface
if (null !== $this->dispatcher) {
$switchEvent = new SwitchUserEvent($request, $original->getUser());
$this->dispatcher->notify(Events::onSecuritySwitchUser, $switchEvent);
$this->dispatcher->dispatchEvent(Events::onSecuritySwitchUser, $switchEvent);
}
return $original;