murph-core/src/core/Event/Account/PasswordRequestEvent.php

26 lines
442 B
PHP
Raw Normal View History

2022-03-13 19:32:32 +01:00
<?php
namespace App\Core\Event\Account;
use App\Entity\User;
use Symfony\Contracts\EventDispatcher\Event;
/**
* class PasswordRequestEvent.
*
* @author Simon Vieille <simon@deblan.fr>
*/
class PasswordRequestEvent extends Event
{
2023-10-12 16:15:07 +02:00
public const EVENT = 'account_event.password_request';
2022-03-13 19:32:32 +01:00
public function __construct(protected User $user)
2022-03-13 19:32:32 +01:00
{
}
2022-05-20 13:50:04 +02:00
public function getUser(): User
2022-03-13 19:32:32 +01:00
{
return $this->user;
}
}