Remove journal collector.

This commit is contained in:
James Cole
2016-05-01 09:52:58 +02:00
parent c66df3cb2c
commit b80db054e2
5 changed files with 53 additions and 77 deletions

View File

@@ -4,6 +4,7 @@ namespace FireflyIII\Jobs;
use Carbon\Carbon;
use FireflyIII\Models\RuleGroup;
use FireflyIII\Repositories\Journal\JournalRepositoryInterface;
use FireflyIII\Rules\Processor;
use FireflyIII\User;
use Illuminate\Contracts\Queue\ShouldQueue;
@@ -143,10 +144,10 @@ class ExecuteRuleGroupOnExistingTransactions extends Job implements ShouldQueue
*/
protected function collectJournals()
{
$args = [$this->accounts, $this->user, $this->startDate, $this->endDate];
$journalCollector = app('FireflyIII\Repositories\Journal\JournalCollector', $args);
/** @var JournalRepositoryInterface $repository */
$repository = app(JournalRepositoryInterface::class);
return $journalCollector->collect();
return $repository->getJournalsInRange($this->accounts, $this->startDate, $this->endDate);
}
/**