Make cron triggers non-static
[MAILPOET-2538]
This commit is contained in:
committed by
Jack Kitterhing
parent
b1aed487be
commit
7a91641d11
@@ -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
|
||||
|
Reference in New Issue
Block a user