mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -386,8 +386,6 @@ if ($options['f'] === 'recalculate_device_dependencies') {
|
||||
|
||||
$lock = Cache::lock('recalculate_device_dependencies', 86000);
|
||||
if ($lock->get()) {
|
||||
\LibreNMS\DB\Eloquent::boot();
|
||||
|
||||
// update all root nodes and recurse, chunk so we don't blow up
|
||||
Device::doesntHave('parents')->with('children')->chunk(100, function (Collection $devices) {
|
||||
// anonymous recursive function
|
||||
|
Reference in New Issue
Block a user