2014-06-29 15:12:33 -05:00
|
|
|
<?php
|
|
|
|
namespace Firefly\Storage;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class StorageServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
// Triggered automatically by Laravel
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
// storage:
|
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\User\UserRepositoryInterface',
|
|
|
|
'Firefly\Storage\User\EloquentUserRepository'
|
|
|
|
);
|
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-05 09:19:15 -05:00
|
|
|
$this->app->bind(
|
|
|
|
'Firefly\Storage\Component\ComponentRepositoryInterface',
|
|
|
|
'Firefly\Storage\Component\EloquentComponentRepository'
|
|
|
|
);
|
2014-06-29 15:12:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|