* Class constructor.
*/
public function __construct() {
- $config = CRM_Core_Config::singleton();
- $config->fatalErrorHandler = 'CRM_Core_JobManager_scheduledJobFatalErrorHandler';
-
$this->jobs = $this->_getJobs();
}
$statusPref = [
'name' => 'checkLastCron',
'check_info' => gmdate('U'),
+ 'prefs' => '',
];
CRM_Core_BAO_StatusPreference::create($statusPref);
}
}
}
-
-/**
- * @param $message
- *
- * @throws Exception
- */
-function CRM_Core_JobManager_scheduledJobFatalErrorHandler($message) {
- throw new Exception("{$message['message']}: {$message['code']}");
-}