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;
/** @var Collection */
private $rules;
/** @var TagRepositoryInterface */
private $tagRepository;
/** @var array */
private $transfers = [];

View File

@ -47,7 +47,7 @@ trait ImportSupport
{
if ($this->rules->count() > 0) {
$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));
$processor = Processor::make($rule);
$processor->handleTransactionJournal($journal);