exportJob(); $this->importJob(); } /** * Register the application services. * * @return void */ public function register() { // } /** * */ private function exportJob() { $this->app->bind( 'FireflyIII\Repositories\ExportJob\ExportJobRepositoryInterface', function (Application $app, array $arguments) { if (!isset($arguments[0]) && $app->auth->check()) { return app('FireflyIII\Repositories\ExportJob\ExportJobRepository', [auth()->user()]); } if (!isset($arguments[0]) && !$app->auth->check()) { throw new FireflyException('There is no user present.'); } return app('FireflyIII\Repositories\ExportJob\ExportJobRepository', $arguments); } ); } private function importJob() { $this->app->bind( 'FireflyIII\Repositories\ImportJob\ImportJobRepositoryInterface', function (Application $app, array $arguments) { if (!isset($arguments[0]) && $app->auth->check()) { return app('FireflyIII\Repositories\ImportJob\ImportJobRepository', [auth()->user()]); } if (!isset($arguments[0]) && !$app->auth->check()) { throw new FireflyException('There is no user present.'); } return app('FireflyIII\Repositories\ImportJob\ImportJobRepository', $arguments); } ); } }