mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-26 11:02:31 +01:00
cbcf62086f
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
44 lines
804 B
PHP
44 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));
|
|
}
|
|
}
|