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