src/Charcoal/User/Authenticator.php
private function authenticateBySession()
    {
        $u = $this->userFactory()->create($this->userType());
        // Call static method on user
        $u = call_user_func([get_class($u), 'getAuthenticated'], $this->userFactory());

        if ($u && $u->id()) {
            $u->saveToSession();

            return $u;
        } else {
            return null;
        }
    }
private function authenticateBySession()
    {
        $u = $this->userFactory()->create($this->userType());
        // Call static method on user
        $u = call_user_func([get_class($u), 'getAuthenticated'], $this->userFactory());

        if ($u && $u->id()) {
            $u->saveToSession();

            return $u;
        } else {
            return null;
        }
    }
private function authenticateBySession ( ) { $ u = $ this -> userFactory ( ) -> create ( $ this -> userType ( ) ) ; // Call static method on user $ u = call_user_func ( [ get_class ( $ u ) , 'getAuthenticated' ] , $ this -> userFactory ( ) ) ; if ( $ u && $ u -> id ( ) ) { $ u -> saveToSession ( ) ; return $ u ; } else { return null ; } }
Attempt to authenticate a user using their session ID.

@return \Charcoal\User\UserInterface|null Returns the authenticated user object
or NULL if not authenticated.
Attempt to authenticate a user using their session ID .