misc_pterodactyl-panel/app/Observers/UserObserver.php
Matthew Penner cbcf62086f
Upgrade to Laravel 9 (#4413)
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2022-10-14 10:59:20 -06:00

43 lines
804 B
PHP

<?php
namespace Pterodactyl\Observers;
use Pterodactyl\Events;
use Pterodactyl\Models\User;
class UserObserver
{
protected string $uuid;
/**
* Listen to the User creating event.
*/
public function creating(User $user): void
{
event(new Events\User\Creating($user));
}
/**
* Listen to the User created event.
*/
public function created(User $user): void
{
event(new Events\User\Created($user));
}
/**
* Listen to the User deleting event.
*/
public function deleting(User $user): void
{
event(new Events\User\Deleting($user));
}
/**
* Listen to the User deleted event.
*/
public function deleted(User $user): void
{
event(new Events\User\Deleted($user));
}
}