mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Clean up code.
This commit is contained in:
parent
c64771b76b
commit
b5b55e862c
@ -41,6 +41,17 @@ class AccountServiceProvider extends ServiceProvider
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
|
{
|
||||||
|
$this->registerRepository();
|
||||||
|
$this->registerTasker();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private function registerRepository()
|
||||||
{
|
{
|
||||||
$this->app->bind(
|
$this->app->bind(
|
||||||
'FireflyIII\Repositories\Account\AccountRepositoryInterface',
|
'FireflyIII\Repositories\Account\AccountRepositoryInterface',
|
||||||
@ -55,7 +66,13 @@ class AccountServiceProvider extends ServiceProvider
|
|||||||
return app('FireflyIII\Repositories\Account\AccountRepository', $arguments);
|
return app('FireflyIII\Repositories\Account\AccountRepository', $arguments);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private function registerTasker()
|
||||||
|
{
|
||||||
$this->app->bind(
|
$this->app->bind(
|
||||||
'FireflyIII\Repositories\Account\AccountTaskerInterface',
|
'FireflyIII\Repositories\Account\AccountTaskerInterface',
|
||||||
function (Application $app, array $arguments) {
|
function (Application $app, array $arguments) {
|
||||||
|
Loading…
Reference in New Issue
Block a user