app/config/services.php: add default event manager to Auth.
This commit is contained in:
parent
b2ca9e3fba
commit
ae6bf194b1
1 changed files with 5 additions and 2 deletions
|
|
@ -298,8 +298,11 @@ $di->set('oauth', function() use ($config) {
|
||||||
return new OAuth($config);
|
return new OAuth($config);
|
||||||
});
|
});
|
||||||
|
|
||||||
$di->set('auth', function() use ($config) {
|
$di->set('auth', function() use ($di, $config) {
|
||||||
return new Auth($config);
|
$auth = new Auth($config);
|
||||||
|
$auth->setEventsManager($di->get('eventsManager'));
|
||||||
|
|
||||||
|
return $auth;
|
||||||
});
|
});
|
||||||
|
|
||||||
$di->set('acl', 'Httpcb\Acl');
|
$di->set('acl', 'Httpcb\Acl');
|
||||||
|
|
|
||||||
Reference in a new issue