From ae6bf194b12d6b0270ccd61478d9d565a0d24080 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 1 Apr 2018 19:35:31 +0200 Subject: [PATCH] app/config/services.php: add default event manager to Auth. --- app/config/services.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/config/services.php b/app/config/services.php index e639b69..0193e1f 100644 --- a/app/config/services.php +++ b/app/config/services.php @@ -298,8 +298,11 @@ $di->set('oauth', function() use ($config) { return new OAuth($config); }); -$di->set('auth', function() use ($config) { - return new Auth($config); +$di->set('auth', function() use ($di, $config) { + $auth = new Auth($config); + $auth->setEventsManager($di->get('eventsManager')); + + return $auth; }); $di->set('acl', 'Httpcb\Acl');