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');