src/Yggdrasil/Core/Controller/SessionManagerTrait.php
protected function startUserSession(object $user): Session
    {
        $session = new Session();

        $session->set('is_granted', true);
        $session->set('user', $user);

        return $session;
    }
protected function startUserSession(object $user): Session
    {
        $session = new Session();

        $session->set('is_granted', true);
        $session->set('user', $user);

        return $session;
    }
protected function startUserSession ( object $ user ) : Session { $ session = new Session ( ) ; $ session -> set ( 'is_granted' , true ) ; $ session -> set ( 'user' , $ user ) ; return $ session ; }
Starts user session and returns session instance

@param object $user Authenticated user instance
@return Session
Starts user session and returns session instance