Make cron triggers non-static

[MAILPOET-2538]
This commit is contained in:
Jan Jakeš
2019-11-18 09:46:35 +01:00
committed by Jack Kitterhing
parent b1aed487be
commit 7a91641d11
3 changed files with 39 additions and 39 deletions

View File

@@ -31,7 +31,7 @@ class CronTrigger {
try {
$trigger_class = __NAMESPACE__ . '\Triggers\\' . $current_method;
return (class_exists($trigger_class)) ?
$trigger_class::run() :
(new $trigger_class)->run() :
false;
} catch (\Exception $e) {
// cron exceptions should not prevent the rest of the site from loading