misc_pterodactyl-panel/app/Observers/UserObserver.php

44 lines
804 B
PHP
Raw Permalink Normal View History

<?php
2016-12-07 22:46:38 +00:00
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));
}
}