mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Code clean up.
This commit is contained in:
@@ -28,7 +28,6 @@ use FireflyIII\Repositories\LinkType\LinkTypeRepositoryInterface;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
|
||||
class AdminServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
@@ -38,8 +37,6 @@ class AdminServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -70,5 +67,4 @@ class AdminServiceProvider extends ServiceProvider
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -65,6 +65,5 @@ class CategoryServiceProvider extends ServiceProvider
|
||||
return $repository;
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,5 +66,4 @@ class CurrencyServiceProvider extends ServiceProvider
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -152,7 +152,5 @@ class EventServiceProvider extends ServiceProvider
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ use FireflyIII\Repositories\ImportJob\ImportJobRepositoryInterface;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
|
||||
/**
|
||||
* Class ExportJobServiceProvider
|
||||
*
|
||||
@@ -46,8 +45,6 @@ class ExportJobServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -102,36 +102,42 @@ class FireflyServiceProvider extends ServiceProvider
|
||||
public function register()
|
||||
{
|
||||
$this->app->bind(
|
||||
'preferences', function () {
|
||||
return new Preferences;
|
||||
}
|
||||
'preferences',
|
||||
function () {
|
||||
return new Preferences;
|
||||
}
|
||||
);
|
||||
|
||||
$this->app->bind(
|
||||
'fireflyconfig', function () {
|
||||
return new FireflyConfig;
|
||||
}
|
||||
'fireflyconfig',
|
||||
function () {
|
||||
return new FireflyConfig;
|
||||
}
|
||||
);
|
||||
$this->app->bind(
|
||||
'navigation', function () {
|
||||
return new Navigation;
|
||||
}
|
||||
'navigation',
|
||||
function () {
|
||||
return new Navigation;
|
||||
}
|
||||
);
|
||||
$this->app->bind(
|
||||
'amount', function () {
|
||||
return new Amount;
|
||||
}
|
||||
'amount',
|
||||
function () {
|
||||
return new Amount;
|
||||
}
|
||||
);
|
||||
|
||||
$this->app->bind(
|
||||
'steam', function () {
|
||||
return new Steam;
|
||||
}
|
||||
'steam',
|
||||
function () {
|
||||
return new Steam;
|
||||
}
|
||||
);
|
||||
$this->app->bind(
|
||||
'expandedform', function () {
|
||||
return new ExpandedForm;
|
||||
}
|
||||
'expandedform',
|
||||
function () {
|
||||
return new ExpandedForm;
|
||||
}
|
||||
);
|
||||
|
||||
// chart generator:
|
||||
@@ -168,5 +174,4 @@ class FireflyServiceProvider extends ServiceProvider
|
||||
// password verifier thing
|
||||
$this->app->bind(Verifier::class, PwndVerifier::class);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -51,12 +51,13 @@ class FireflySessionProvider extends ServiceProvider
|
||||
protected function registerSessionDriver()
|
||||
{
|
||||
$this->app->singleton(
|
||||
'session.store', function ($app) {
|
||||
// First, we will create the session manager which is responsible for the
|
||||
// creation of the various session drivers when they are needed by the
|
||||
// application instance, and will resolve them on a lazy load basis.
|
||||
return $app->make('session')->driver();
|
||||
}
|
||||
'session.store',
|
||||
function ($app) {
|
||||
// First, we will create the session manager which is responsible for the
|
||||
// creation of the various session drivers when they are needed by the
|
||||
// application instance, and will resolve them on a lazy load basis.
|
||||
return $app->make('session')->driver();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -68,9 +69,10 @@ class FireflySessionProvider extends ServiceProvider
|
||||
protected function registerSessionManager()
|
||||
{
|
||||
$this->app->singleton(
|
||||
'session', function ($app) {
|
||||
return new SessionManager($app);
|
||||
}
|
||||
'session',
|
||||
function ($app) {
|
||||
return new SessionManager($app);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,6 @@ class JournalServiceProvider extends ServiceProvider
|
||||
/** @var JournalRepositoryInterface $repository */
|
||||
$repository = app(JournalRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -121,5 +120,4 @@ class JournalServiceProvider extends ServiceProvider
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -43,7 +43,8 @@ class LogServiceProvider extends LaravelLogServiceProvider
|
||||
protected function configureDailyHandler(Writer $log)
|
||||
{
|
||||
$log->useDailyFiles(
|
||||
$this->app->storagePath() . '/logs/firefly-iii.log', $this->maxFiles(),
|
||||
$this->app->storagePath() . '/logs/firefly-iii.log',
|
||||
$this->maxFiles(),
|
||||
$this->logLevel()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -29,7 +29,6 @@ use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
|
||||
/**
|
||||
* Class PiggyBankServiceProvider
|
||||
*
|
||||
|
||||
@@ -29,7 +29,6 @@ use FireflyIII\Repositories\RuleGroup\RuleGroupRepositoryInterface;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
|
||||
/**
|
||||
* Class RuleGroupServiceProvider
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user