public function init()
    {
        parent::init();
        $this->denyCallback = function () {
            Yii::$app->session->addFlash($this->type, $this->message, true);
            return Yii::$app->response->redirect([Podium::getInstance()->prepareRoute('account/login')]);
        };
    }
public function init()
    {
        parent::init();
        $this->denyCallback = function () {
            Yii::$app->session->addFlash($this->type, $this->message, true);
            return Yii::$app->response->redirect([Podium::getInstance()->prepareRoute('account/login')]);
        };
    }
public function init ( ) { parent :: init ( ) ; $ this -> denyCallback = function ( ) { Yii :: $ app -> session -> addFlash ( $ this -> type , $ this -> message , true ) ; return Yii :: $ app -> response -> redirect ( [ Podium :: getInstance ( ) -> prepareRoute ( 'account/login' ) ] ) ; } ; }
Sets deny callback.
Sets deny callback .