The methods deprecated in T208768: Create a PermissionManager service and T218558: Move User::getRights and related methods into PermissionManager should no longer be called in MediaWiki core. Calling code should use the methods in the new PermissionManager service instead.
In service classes that are already managed by MediaWikiServices or use a static singleton, a PermissionManager instance should be injected into the constructor. Other classes can use the global MediaWikiServices instance as a service locator to access a PermissionManager instance.