public function afterAction($action, $result)
    {
        if (Yii::$app instanceof WebApplication && !in_array($action->id, ['import', 'run', 'update', 'level-up'], true)) {
            Activity::add();
        }
        return parent::afterAction($action, $result);
    }
public function afterAction($action, $result)
    {
        if (Yii::$app instanceof WebApplication && !in_array($action->id, ['import', 'run', 'update', 'level-up'], true)) {
            Activity::add();
        }
        return parent::afterAction($action, $result);
    }
public function afterAction ( $ action , $ result ) { if ( Yii :: $ app instanceof WebApplication && ! in_array ( $ action -> id , [ 'import' , 'run' , 'update' , 'level-up' ] , true ) ) { Activity :: add ( ) ; } return parent :: afterAction ( $ action , $ result ) ; }
Registers user activity after every action.
@see Activity::add()
@param Action $action the action just executed
@param mixed $result the action return result
@return mixed the processed action result
Registers user activity after every action .