public function notify($eventType, ModelInterface $model)
{
//Fires 'logAfterUpdate' if the event is 'afterCreate'
if ($eventType == 'afterCreate') {
return $this->auditAfterCreate($model);
}
//Fires 'logAfterUpdate' if the event is 'afterUpdate'
if ($eventType == 'afterUpdate') {
return $this->auditAfterUpdate($model);
}
}