🐛 fix(ResetPasswordEvent): Corrige l'initialisation et ajoute setEmail pour l'email.
This commit is contained in:
@@ -4,7 +4,9 @@ namespace App\Service\ResetPassword\Event;
|
||||
|
||||
class ResetPasswordEvent
|
||||
{
|
||||
public function __construct(private ?string $email=null)
|
||||
private ?string $email;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -12,4 +14,12 @@ class ResetPasswordEvent
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string|null $email
|
||||
*/
|
||||
public function setEmail(?string $email): void
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user