/**
  * @throws InvalidConfigException
  */
 public function init()
 {
     parent::init();
     if ($this->modelClass === null) {
         throw new InvalidConfigException('Model class should be set');
     }
     if ($this->type === null) {
         throw new InvalidConfigException('Auth item type should be set');
     }
 }
Esempio n. 2
0
 /**
  * @throws InvalidConfigException
  */
 public function init()
 {
     parent::init();
     if ($this->modelClass === null) {
         throw new InvalidConfigException('Model class should be set');
     }
     if ($this->formClass === null) {
         throw new InvalidConfigException('Form class should be set');
     }
     if ($this->searchClass === null) {
         throw new InvalidConfigException('Search class should be set');
     }
 }