public function findOrSpawnUser(LtiLaunchData $launchData)
    {
        $taoUser = $this->findUser($launchData);
        if (is_null($taoUser)) {
            $taoUser = $this->spawnUser($launchData);
        }
        return $taoUser;
    }
public function findOrSpawnUser(LtiLaunchData $launchData)
    {
        $taoUser = $this->findUser($launchData);
        if (is_null($taoUser)) {
            $taoUser = $this->spawnUser($launchData);
        }
        return $taoUser;
    }
public function findOrSpawnUser ( LtiLaunchData $ launchData ) { $ taoUser = $ this -> findUser ( $ launchData ) ; if ( is_null ( $ taoUser ) ) { $ taoUser = $ this -> spawnUser ( $ launchData ) ; } return $ taoUser ; }
Returns the existing tao User that corresponds to
the LTI request or spawns it

@param LtiLaunchData $launchData
@return LtiUser
@throws \common_Exception
@throws \common_exception_Error
@throws \core_kernel_users_CacheException
@throws \core_kernel_users_Exception
@throws \oat\taoLti\models\classes\LtiVariableMissingException
Returns the existing tao User that corresponds to the LTI request or spawns it