Jump to content

Manual:UserFactory.php

From mediawiki.org

To get an instance of a UserFactory:

$userFactory = MediaWiki\MediaWikiServices::getInstance()->getUserFactory();