Move Config loading to a service provider (#13927)

* Move Config loading to a service provider
That way other service providers can depend on it
Move various random listener registrations into the EventServiceProvider
Various startup cleanup

* Config::persist Set live variable before persisting incase db update fail

* Disable strict mode for legacy code (init.php)

* Disable debug after os test data is gathered

* remove Eloquent::boot it is never used

* remove Eloquent::version

* lint fixes

* style fixes

* there is no c_echo here
This commit is contained in:
Tony Murray
2022-04-22 19:12:07 -05:00
committed by GitHub
parent d4479e12dd
commit 014213680f
23 changed files with 251 additions and 352 deletions

View File

@@ -176,7 +176,7 @@ return [
\SocialiteProviders\Manager\ServiceProvider::class,
/*
* Application Service Providers...
* LibreNMS Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\CliServiceProvider::class,
@@ -184,12 +184,12 @@ return [
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
App\Providers\ConfigServiceProvider::class,
App\Providers\SocialiteListenersServiceProvider::class,
App\Providers\ComposerServiceProvider::class,
App\Providers\DatastoreServiceProvider::class,
/*
* LibreNMS Service Providers...
*/
App\Providers\SnmptrapProvider::class,
App\Providers\PluginProvider::class,
],