Audit cannot be extended due to usage of Audit::getInstance()
cornernote opened this issue · 1 comments
cornernote commented
If you try to do something like this in your config array, all hell breaks loose:
'modules' => [
'audit' => [
//'class' => 'bedezign\yii2\audit\Audit',
'class' => 'app\components\audit\Audit',
],
],
The reason is because Audit::getInstance()
uses the calling class's name.
Blizzke commented
getInstance
method was overridden to allow exactly this.