diff --git a/Module.php b/Module.php index ceaa200..f60bd56 100644 --- a/Module.php +++ b/Module.php @@ -31,7 +31,7 @@ public function onBootstrap(EventInterface $e) // Try to login from Cookie if applicable $service = new CookieAuthenticationService($sm); - $service->setEventManager($em); + $service->setEventManager(new EventManager($em->getSharedManager())); $service->loginFrom($request, $response); }