mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Stop processing.
This commit is contained in:
parent
cd4cbdc197
commit
5958990ed5
@ -87,6 +87,9 @@ class Processor
|
|||||||
if ($triggerClass->triggered()) {
|
if ($triggerClass->triggered()) {
|
||||||
$hitTriggers++;
|
$hitTriggers++;
|
||||||
}
|
}
|
||||||
|
if ($trigger->stop_processing) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Log::debug('Total: ' . $foundTriggers . ' found triggers. ' . $hitTriggers . ' triggers were hit.');
|
Log::debug('Total: ' . $foundTriggers . ' found triggers. ' . $hitTriggers . ' triggers were hit.');
|
||||||
@ -114,6 +117,9 @@ class Processor
|
|||||||
/** @var ActionInterface $actionClass */
|
/** @var ActionInterface $actionClass */
|
||||||
$actionClass = new $class($action, $this->journal);
|
$actionClass = new $class($action, $this->journal);
|
||||||
$actionClass->act();
|
$actionClass->act();
|
||||||
|
if ($action->stop_processing) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user