mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 23:50:33 +00:00
57 lines
1.6 KiB
PHP
57 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Events\ModelDomainCreated;
|
|
use App\Events\ModelDomainDeleting;
|
|
use App\Events\ModelHostingSubscriptionCreated;
|
|
use app\Events\ModelHostingSubscriptionCreating;
|
|
use App\Events\ModelHostingSubscriptionDeleting;
|
|
use App\Events\ModelPhyreServerCreated;
|
|
use App\Listeners\ModelDomainCreatedListener;
|
|
use App\Listeners\ModelDomainDeletingListener;
|
|
use App\Listeners\ModelHostingSubscriptionCreatingListener;
|
|
use App\Listeners\ModelHostingSubscriptionDeletingListener;
|
|
use App\Listeners\ModelPhyreServerCreatedListener;
|
|
use Illuminate\Auth\Events\Registered;
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
use Illuminate\Support\Facades\Event;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The event to listener mappings for the application.
|
|
*
|
|
* @var array<class-string, array<int, class-string>>
|
|
*/
|
|
|
|
protected $listen = [
|
|
Registered::class => [
|
|
SendEmailVerificationNotification::class,
|
|
],
|
|
ModelDomainDeleting::class => [
|
|
ModelDomainDeletingListener::class,
|
|
],
|
|
ModelPhyreServerCreated::class => [
|
|
ModelPhyreServerCreatedListener::class,
|
|
],
|
|
|
|
];
|
|
|
|
/**
|
|
* Register any events for your application.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Determine if events and listeners should be automatically discovered.
|
|
*/
|
|
public function shouldDiscoverEvents(): bool
|
|
{
|
|
return false;
|
|
}
|
|
}
|