app/models/Data/User.php: set default event manager from DI
This commit is contained in:
parent
a3c6ae4429
commit
8061c674f4
1 changed files with 3 additions and 0 deletions
|
|
@ -33,6 +33,9 @@ class User extends Model
|
||||||
|
|
||||||
// Keep snapshots so we know if something changes.
|
// Keep snapshots so we know if something changes.
|
||||||
$this->keepSnapshots(true);
|
$this->keepSnapshots(true);
|
||||||
|
|
||||||
|
// Set default event manager
|
||||||
|
$this->setEventsManager($this->getDI()->get('eventsManager'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Reference in a new issue