mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-06 04:01:58 +02:00
41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Pterodactyl\Providers;
|
|
|
|
use Pterodactyl\Models\User;
|
|
use Pterodactyl\Models\Subuser;
|
|
use Pterodactyl\Models\EggVariable;
|
|
use Pterodactyl\Observers\UserObserver;
|
|
use Pterodactyl\Observers\SubuserObserver;
|
|
use Pterodactyl\Observers\EggVariableObserver;
|
|
use Pterodactyl\Listeners\Auth\AuthenticationListener;
|
|
use Pterodactyl\Events\Server\Installed as ServerInstalledEvent;
|
|
use Pterodactyl\Notifications\ServerInstalled as ServerInstalledNotification;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The event to listener mappings for the application.
|
|
*/
|
|
protected $listen = [
|
|
ServerInstalledEvent::class => [ServerInstalledNotification::class],
|
|
];
|
|
|
|
protected $subscribe = [
|
|
AuthenticationListener::class,
|
|
];
|
|
|
|
/**
|
|
* Register any events for your application.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
parent::boot();
|
|
|
|
User::observe(UserObserver::class);
|
|
Subuser::observe(SubuserObserver::class);
|
|
EggVariable::observe(EggVariableObserver::class);
|
|
}
|
|
}
|