mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-15 19:22:08 -06:00
Removed a method no longer necessary.
This commit is contained in:
parent
b355c18e0c
commit
5540697dbd
@ -22,7 +22,6 @@ use FireflyIII\Export\Processor;
|
||||
use FireflyIII\Http\Requests\ExportFormRequest;
|
||||
use FireflyIII\Models\AccountType;
|
||||
use FireflyIII\Models\ExportJob;
|
||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface as ARI;
|
||||
use FireflyIII\Repositories\ExportJob\ExportJobRepositoryInterface as EJRI;
|
||||
use Preferences;
|
||||
use Response;
|
||||
@ -118,19 +117,19 @@ class ExportController extends Controller
|
||||
|
||||
/**
|
||||
* @param ExportFormRequest $request
|
||||
* @param ARI $repository
|
||||
* @param AccountCrudInterface $crud
|
||||
*
|
||||
* @param EJRI $jobs
|
||||
*
|
||||
* @return string
|
||||
* @throws \FireflyIII\Exceptions\FireflyException
|
||||
*/
|
||||
public function postIndex(ExportFormRequest $request, ARI $repository, EJRI $jobs)
|
||||
public function postIndex(ExportFormRequest $request, AccountCrudInterface $crud, EJRI $jobs)
|
||||
{
|
||||
set_time_limit(0);
|
||||
$job = $jobs->findByKey($request->get('job'));
|
||||
$settings = [
|
||||
'accounts' => $repository->get($request->get('accounts')),
|
||||
'accounts' => $crud->getAccountsById($request->get('accounts')),
|
||||
'startDate' => new Carbon($request->get('export_start_range')),
|
||||
'endDate' => new Carbon($request->get('export_end_range')),
|
||||
'exportFormat' => $request->get('exportFormat'),
|
||||
|
@ -21,7 +21,6 @@ use FireflyIII\Http\Requests\SelectTransactionsRequest;
|
||||
use FireflyIII\Jobs\ExecuteRuleGroupOnExistingTransactions;
|
||||
use FireflyIII\Models\AccountType;
|
||||
use FireflyIII\Models\RuleGroup;
|
||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||
use FireflyIII\Repositories\RuleGroup\RuleGroupRepositoryInterface;
|
||||
use Input;
|
||||
use Preferences;
|
||||
@ -148,15 +147,15 @@ class RuleGroupController extends Controller
|
||||
* Execute the given rulegroup on a set of existing transactions
|
||||
*
|
||||
* @param SelectTransactionsRequest $request
|
||||
* @param AccountRepositoryInterface $repository
|
||||
* @param AccountCrudInterface $crud
|
||||
* @param RuleGroup $ruleGroup
|
||||
*
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
public function execute(SelectTransactionsRequest $request, AccountRepositoryInterface $repository, RuleGroup $ruleGroup)
|
||||
public function execute(SelectTransactionsRequest $request, AccountCrudInterface $crud, RuleGroup $ruleGroup)
|
||||
{
|
||||
// Get parameters specified by the user
|
||||
$accounts = $repository->get($request->get('accounts'));
|
||||
$accounts = $crud->getAccountsById($request->get('accounts'));
|
||||
$startDate = new Carbon($request->get('start_date'));
|
||||
$endDate = new Carbon($request->get('end_date'));
|
||||
|
||||
|
@ -227,18 +227,6 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
return $first;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all the accounts by ID, for a given set.
|
||||
*
|
||||
* @param array $ids
|
||||
*
|
||||
* @return \Illuminate\Support\Collection
|
||||
*/
|
||||
public function get(array $ids): Collection
|
||||
{
|
||||
return $this->user->accounts()->whereIn('id', $ids)->get(['accounts.*']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param TransactionJournal $journal
|
||||
* @param Account $account
|
||||
|
@ -79,15 +79,6 @@ interface AccountRepositoryInterface
|
||||
*/
|
||||
public function firstUseDate(Account $account): Carbon;
|
||||
|
||||
/**
|
||||
* Gets all the accounts by ID, for a given set.
|
||||
*
|
||||
* @param array $ids
|
||||
*
|
||||
* @return \Illuminate\Support\Collection
|
||||
*/
|
||||
public function get(array $ids): Collection;
|
||||
|
||||
/**
|
||||
* @param TransactionJournal $journal
|
||||
* @param Account $account
|
||||
|
Loading…
Reference in New Issue
Block a user