mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Move domain stuff to configuration.
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
|
||||
namespace FireflyIII\Support;
|
||||
|
||||
use Config;
|
||||
|
||||
/**
|
||||
* Class Domain
|
||||
*
|
||||
@@ -21,29 +23,7 @@ class Domain
|
||||
*/
|
||||
public static function getBindables()
|
||||
{
|
||||
return [
|
||||
// models
|
||||
'account' => 'FireflyIII\Models\Account',
|
||||
'attachment' => 'FireflyIII\Models\Attachment',
|
||||
'bill' => 'FireflyIII\Models\Bill',
|
||||
'budget' => 'FireflyIII\Models\Budget',
|
||||
'category' => 'FireflyIII\Models\Category',
|
||||
'currency' => 'FireflyIII\Models\TransactionCurrency',
|
||||
'limitrepetition' => 'FireflyIII\Models\LimitRepetition',
|
||||
'piggyBank' => 'FireflyIII\Models\PiggyBank',
|
||||
'tj' => 'FireflyIII\Models\TransactionJournal',
|
||||
'tag' => 'FireflyIII\Models\Tag',
|
||||
// lists
|
||||
'accountList' => 'FireflyIII\Support\Binder\AccountList',
|
||||
'budgetList' => 'FireflyIII\Support\Binder\BudgetList',
|
||||
'categoryList' => 'FireflyIII\Support\Binder\CategoryList',
|
||||
|
||||
// others
|
||||
'start_date' => 'FireflyIII\Support\Binder\Date',
|
||||
'end_date' => 'FireflyIII\Support\Binder\Date'
|
||||
];
|
||||
|
||||
return Config::get('firefly.bindables');
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user