Stop processing.

This commit is contained in:
James Cole 2016-01-15 06:35:31 +01:00
parent cd4cbdc197
commit 5958990ed5

View File

@ -87,6 +87,9 @@ class Processor
if ($triggerClass->triggered()) {
$hitTriggers++;
}
if ($trigger->stop_processing) {
break;
}
}
Log::debug('Total: ' . $foundTriggers . ' found triggers. ' . $hitTriggers . ' triggers were hit.');
@ -114,6 +117,9 @@ class Processor
/** @var ActionInterface $actionClass */
$actionClass = new $class($action, $this->journal);
$actionClass->act();
if ($action->stop_processing) {
break;
}
}