Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.6 KiB
PHP
Raw Permalink Normal View History

2018-05-09 08:05:17 -05:00
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
2023-04-15 09:02:41 -05:00
* @var array<string, array<int, string>>
2018-05-09 08:05:17 -05:00
*/
protected $listen = [
\Illuminate\Auth\Events\Login::class => ['App\Listeners\AuthEventListener@login'],
\Illuminate\Auth\Events\Logout::class => ['App\Listeners\AuthEventListener@logout'],
2021-11-17 19:23:55 -06:00
\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,
],
2022-10-07 20:52:55 +02:00
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
\App\Listeners\SocialiteWasCalledListener::class,
],
2018-05-09 08:05:17 -05:00
];
/**
* Register any events for your application.
*
* @return void
*/
2023-05-24 22:21:54 +02:00
public function boot(): void
2018-05-09 08:05:17 -05:00
{
//
}
2023-04-17 13:51:35 +02:00
/**
* Determine if events and listeners should be automatically discovered.
*
* @return bool
*/
2023-05-24 22:21:54 +02:00
public function shouldDiscoverEvents(): bool
2023-04-17 13:51:35 +02:00
{
return false;
}
2018-05-09 08:05:17 -05:00
}