Ejemplo n.º 1
0
 /**
  * @return array|null
  */
 public function fetchCurrentUser()
 {
     if (!$this->userLoggedIn()) {
         return null;
     }
     $username = SessionStorage::getValue('username');
     return $this->_db->fetchOne('users', ['username' => $username]);
 }