cbcf62086f
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
43 lines
804 B
PHP
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));
|
|
}
|
|
}
|