+ Civi\Core\Container::singleton();
+ }
+
+ /**
+ * @return CRM_Core_Resources
+ */
+ public static function resources() {
+ return CRM_Core_Resources::singleton();
+ }
+
+ /**
+ * Obtain the domain settings.
+ *
+ * @param int|null $domainID
+ * For the default domain, leave $domainID as NULL.
+ * @return \Civi\Core\SettingsBag
+ */
+ public static function settings($domainID = NULL) {
+ return \Civi\Core\Container::getBootService('settings_manager')->getBagByDomain($domainID);