* Process the form submission.
*/
public function postProcess() {
- $result = CRM_Core_Config::singleton()->userSystem->synchronizeUsers();
+ $result = Civi::userSystem()->synchronizeUsers();
$status = ts('Checked one user record.',
array(
/**
* Class CRM_Core_Config
+ *
+ * @property CRM_Utils_System_Base $userSystem
*/
class CRM_Core_Config extends CRM_Core_Config_MagicMerge {
return \Civi\Core\Container::getBootService('settings_manager')->getBagByDomain($domainID);
}
+ /**
+ * @return \CRM_Utils_System_Base
+ */
+ public static function userSystem() {
+ return CRM_Core_Config::singleton()->userSystem;
+ }
+
}