. */ namespace App\Events; use App\Entity\UserSystem\User; use Symfony\Contracts\EventDispatcher\Event; /** * This event is triggered when something security related to a user happens. * For example when the password is reset or the an two factor authentication method was disabled. */ class SecurityEvent extends Event { protected $targetUser; protected $from_cli; public function __construct(User $targetUser) { $this->targetUser = $targetUser; } /** * Returns the affected user. * * @return User */ public function getTargetUser() { return $this->targetUser; } }