Actually use journal [skip ci]

This commit is contained in:
James Cole 2017-08-12 19:05:29 +02:00
parent cc1439fb7b
commit 018941c5b3
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 1 additions and 3 deletions

View File

@ -43,8 +43,6 @@ class ImportStorage
private $objects; private $objects;
/** @var Collection */ /** @var Collection */
private $rules; private $rules;
/** @var TagRepositoryInterface */
private $tagRepository;
/** @var array */ /** @var array */
private $transfers = []; private $transfers = [];

View File

@ -47,7 +47,7 @@ trait ImportSupport
{ {
if ($this->rules->count() > 0) { if ($this->rules->count() > 0) {
$this->rules->each( $this->rules->each(
function (Rule $rule) { function (Rule $rule) use($journal) {
Log::debug(sprintf('Going to apply rule #%d to journal %d.', $rule->id, $journal->id)); Log::debug(sprintf('Going to apply rule #%d to journal %d.', $rule->id, $journal->id));
$processor = Processor::make($rule); $processor = Processor::make($rule);
$processor->handleTransactionJournal($journal); $processor->handleTransactionJournal($journal);