mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 17:42:33 +01:00
52 lines
981 B
PHP
52 lines
981 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Observers;
|
|
|
|
use Pterodactyl\Events;
|
|
use Pterodactyl\Models\User;
|
|
|
|
class UserObserver
|
|
{
|
|
protected $uuid;
|
|
|
|
/**
|
|
* Listen to the User creating event.
|
|
*
|
|
* @param \Pterodactyl\Models\User $user
|
|
*/
|
|
public function creating(User $user)
|
|
{
|
|
event(new Events\User\Creating($user));
|
|
}
|
|
|
|
/**
|
|
* Listen to the User created event.
|
|
*
|
|
* @param \Pterodactyl\Models\User $user
|
|
*/
|
|
public function created(User $user)
|
|
{
|
|
event(new Events\User\Created($user));
|
|
}
|
|
|
|
/**
|
|
* Listen to the User deleting event.
|
|
*
|
|
* @param \Pterodactyl\Models\User $user
|
|
*/
|
|
public function deleting(User $user)
|
|
{
|
|
event(new Events\User\Deleting($user));
|
|
}
|
|
|
|
/**
|
|
* Listen to the User deleted event.
|
|
*
|
|
* @param \Pterodactyl\Models\User $user
|
|
*/
|
|
public function deleted(User $user)
|
|
{
|
|
event(new Events\User\Deleted($user));
|
|
}
|
|
}
|