New answers tagged

1

Use Joomla\CMS\User\UserFactory. You can get it from the service container: use Joomla\CMS\User\UserFactoryInterace; $userFactory = $container->get(UserFactoryInterface::class); Or using alias: $userFactory = $container->get('user.factory'); Where $container is the container. If you're doing this inside service provider file (services/provider.php), ...


Top 50 recent answers are included