src/User/UserManager.php
public function logIn(array $user_infos) : void
    {
        $_SESSION['phunder']['user']['logged_in'] = true;
        $this->infos = array_merge($this->infos, $user_infos);
        $this->save();
    }
public function logIn(array $user_infos) : void
    {
        $_SESSION['phunder']['user']['logged_in'] = true;
        $this->infos = array_merge($this->infos, $user_infos);
        $this->save();
    }
public function logIn ( array $ user_infos ) : void { $ _SESSION [ 'phunder' ] [ 'user' ] [ 'logged_in' ] = true ; $ this -> infos = array_merge ( $ this -> infos , $ user_infos ) ; $ this -> save ( ) ; }
Declare the current user as logged in

@param array $user_infos     infos to save
Declare the current user as logged in