backend/modules/api/controllers/AuthController.php
/**
    * Admin Logout
    * @return Array with status and User Identity object
    */
Admin Logout
@return Array with status and User Identity object
Admin Logout @return Array with status and User Identity object
public function actionLogout(){
        if(Yii::$app->user->logout()){
            return ['status'=>'success','logout'=>Yii::$app->user->logout()];
        }
    }
public function actionLogout ( ) { if ( Yii :: $ app -> user -> logout ( ) ) { return [ 'status' => 'success' , 'logout' => Yii :: $ app -> user -> logout ( ) ] ; } }
Admin Logout
 @return Array with status and User Identity object
Admin Logout @return Array with status and User Identity object