return Civi\Core\Container::singleton();
}
+ /**
+ * Get the event dispatcher.
+ *
+ * @return \Symfony\Component\EventDispatcher\EventDispatcherInterface
+ */
+ public static function dispatcher() {
+ return Civi\Core\Container::singleton()->get('dispatcher');
+ }
+
/**
* @return \Civi\Core\Lock\LockManager
*/
return \Civi\Core\Container::getBootService('settings_manager')->getBagByDomain($domainID);
}
- /**
- * @return \CRM_Utils_System_Base
- */
- public static function userSystem() {
- return CRM_Core_Config::singleton()->userSystem;
- }
-
}