mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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
46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The event listener mappings for the application.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $listen = [
|
|
\Illuminate\Auth\Events\Login::class => ['App\Listeners\AuthEventListener@login'],
|
|
\Illuminate\Auth\Events\Logout::class => ['App\Listeners\AuthEventListener@logout'],
|
|
\App\Events\UserCreated::class => [
|
|
\App\Listeners\MarkNotificationsRead::class,
|
|
],
|
|
\App\Events\PollingDevice::class => [
|
|
],
|
|
\App\Events\DevicePolled::class => [
|
|
\App\Listeners\CheckAlerts::class,
|
|
\App\Listeners\UpdateDeviceGroups::class,
|
|
],
|
|
\Illuminate\Database\Events\QueryExecuted::class => [
|
|
\App\Listeners\QueryDebugListener::class,
|
|
\App\Listeners\QueryMetricListener::class,
|
|
],
|
|
\Illuminate\Database\Events\StatementPrepared::class => [
|
|
\App\Listeners\LegacyQueryListener::class,
|
|
],
|
|
];
|
|
|
|
/**
|
|
* Register any events for your application.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
|
|
//
|
|
}
|
|
}
|