mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-22 22:43:20 -06:00
47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
namespace Firefly\Storage;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class StorageServiceProvider extends ServiceProvider
|
|
{
|
|
|
|
|
|
// Triggered automatically by Laravel
|
|
public function register()
|
|
{
|
|
$this->app->bind(
|
|
'Firefly\Storage\User\UserRepositoryInterface',
|
|
'Firefly\Storage\User\EloquentUserRepository'
|
|
);
|
|
$this->app->bind(
|
|
'Firefly\Storage\Transaction\TransactionRepositoryInterface',
|
|
'Firefly\Storage\Transaction\EloquentTransactionRepository'
|
|
);
|
|
|
|
|
|
$this->app->bind(
|
|
'Firefly\Storage\Account\AccountRepositoryInterface',
|
|
'Firefly\Storage\Account\EloquentAccountRepository'
|
|
);
|
|
$this->app->bind(
|
|
'Firefly\Storage\TransactionJournal\TransactionJournalRepositoryInterface',
|
|
'Firefly\Storage\TransactionJournal\EloquentTransactionJournalRepository'
|
|
);
|
|
|
|
$this->app->bind(
|
|
'Firefly\Storage\Component\ComponentRepositoryInterface',
|
|
'Firefly\Storage\Component\EloquentComponentRepository'
|
|
);
|
|
|
|
$this->app->bind(
|
|
'Firefly\Storage\Budget\BudgetRepositoryInterface',
|
|
'Firefly\Storage\Budget\EloquentBudgetRepository'
|
|
);
|
|
$this->app->bind(
|
|
'Firefly\Storage\Category\CategoryRepositoryInterface',
|
|
'Firefly\Storage\Category\EloquentCategoryRepository'
|
|
);
|
|
}
|
|
|
|
} |