Ejemplo n.º 1
0
 /**
  * Finds user by [[username]]
  *
  * @return User|null
  */
 protected function getUser()
 {
     if ($this->_user === null) {
         $this->_user = BackendUser::findByUsername($this->username);
     }
     return $this->_user;
 }