2014-06-29 15:12:33 -05:00
|
|
|
<?php
|
|
|
|
namespace Firefly\Storage;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* Class StorageServiceProvider
|
|
|
|
*
|
|
|
|
* @package Firefly\Storage
|
|
|
|
*/
|
2014-06-29 15:12:33 -05:00
|
|
|
class StorageServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
|
|
|
|
|
2014-07-25 06:02:01 -05:00
|
|
|
/**
|
|
|
|
* Triggered automatically by Laravel
|
|
|
|
*/
|
2014-06-29 15:12:33 -05:00
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\User\UserRepositoryInterface',
|
|
|
|
'Firefly\Storage\User\EloquentUserRepository'
|
|
|
|
);
|
2014-07-06 14:07:52 -05:00
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\Transaction\TransactionRepositoryInterface',
|
|
|
|
'Firefly\Storage\Transaction\EloquentTransactionRepository'
|
|
|
|
);
|
|
|
|
|
2014-07-31 15:01:52 -05:00
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\Piggybank\PiggybankRepositoryInterface',
|
|
|
|
'Firefly\Storage\Piggybank\EloquentPiggybankRepository'
|
|
|
|
);
|
|
|
|
|
2014-08-06 10:02:02 -05:00
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\RecurringTransaction\RecurringTransactionRepositoryInterface',
|
|
|
|
'Firefly\Storage\RecurringTransaction\EloquentRecurringTransactionRepository'
|
|
|
|
);
|
|
|
|
|
2014-07-06 14:07:52 -05:00
|
|
|
|
2014-06-30 00:26:38 -05:00
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\Account\AccountRepositoryInterface',
|
|
|
|
'Firefly\Storage\Account\EloquentAccountRepository'
|
|
|
|
);
|
2014-07-03 14:31:32 -05:00
|
|
|
$this->app->bind(
|
2014-07-05 09:19:15 -05:00
|
|
|
'Firefly\Storage\TransactionJournal\TransactionJournalRepositoryInterface',
|
2014-07-03 14:31:32 -05:00
|
|
|
'Firefly\Storage\TransactionJournal\EloquentTransactionJournalRepository'
|
|
|
|
);
|
2014-07-06 14:07:52 -05:00
|
|
|
|
2014-07-05 09:19:15 -05:00
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\Component\ComponentRepositoryInterface',
|
|
|
|
'Firefly\Storage\Component\EloquentComponentRepository'
|
|
|
|
);
|
2014-07-15 00:08:13 -05:00
|
|
|
|
2014-07-20 11:24:27 -05:00
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\Limit\LimitRepositoryInterface',
|
|
|
|
'Firefly\Storage\Limit\EloquentLimitRepository'
|
|
|
|
);
|
|
|
|
|
2014-07-15 00:08:13 -05:00
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\Budget\BudgetRepositoryInterface',
|
|
|
|
'Firefly\Storage\Budget\EloquentBudgetRepository'
|
|
|
|
);
|
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\Category\CategoryRepositoryInterface',
|
|
|
|
'Firefly\Storage\Category\EloquentCategoryRepository'
|
|
|
|
);
|
2014-06-29 15:12:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|