Added `beforeRun()` and `afterRun()` to `yii\base\Action`