Can you not just create the object? Something like
I found the class by looking in an HTMLView at the code for getCurrentUser. netBeans made it easy to follow the trail.
Code:
$newUser = new \Joomla\CMS\User\User();
Statistics: Posted by MarkRS — Tue Feb 06, 2024 8:01 pm