Example #1
0
 /** @return \cubiclab\users\UsersCube|null Module instance */
 public function getModule()
 {
     if ($this->_module === null) {
         $module = UsersCube::getInstance();
         if ($module instanceof UsersCube) {
             $this->_module = $module;
         } else {
             $this->_module = Yii::$app->getModule('users');
         }
     }
     return $this->_module;
 }