public function init(){ $this->on(Events::UPLOAD_IMAGE, [EventHandler::className(), 'UploadImage']); }
public function init(){ //Registering create_company Event $this->on(Events::CREATE_COMPANY, [EventHandler::className(), 'Registration']); $this->on(Events::UPLOAD_IMAGE, [EventHandler::className(), 'UploadImage']); $this->on(self::AFTER_SAVE, [$this, 'afterSave']); }
public function init(){ //User Login Event handler $this->on(Events::USER_LOGIN, [EventHandler::className(), 'UserLogin']); }
public function init(){ $this->on(Events::TOKEN_INVALID, [EventHandler::className(), 'TokenInvalid']); }
public function init(){ $this->on(Events::REGISTRATION, [EventHandler::className(), 'Registration']); $this->on(Events::UPLOAD_IMAGE, [EventHandler::className(), 'UploadImage']); $this->on(self::AFTER_SAVE, [$this, 'afterSave']); }