1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 01:22:30 +01:00
Pterodactyl-Panel/app/Observers/UserObserver.php

44 lines
804 B
PHP
Raw Normal View History

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