Cleaned up the Processor. This completely breaks everything @ roberthorlings has built but stay with me.

This commit is contained in:
James Cole
2016-02-17 18:47:05 +01:00
parent 2bd2f5a5aa
commit 8024ad123e
3 changed files with 31 additions and 73 deletions

View File

@@ -60,10 +60,10 @@ class FireRulesForUpdate
/** @var Rule $rule */
foreach ($rules as $rule) {
Log::debug('Now handling rule #' . $rule->id . ' (' . $rule->title . ')');
$processor = new Processor($rule, $event->journal);
// get some return out of this?
$processor->handle();
Log::debug('Now handling rule #' . $rule->id . ' (' . $rule->title . ')');
$processor = Processor::make($rule);
$processor->handleTransactionJournal($event->journal);
if ($rule->stop_processing) {
break;