Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Mautic\UserBundle\Event;
|
||||
|
||||
use Mautic\UserBundle\Entity\User;
|
||||
use Symfony\Contracts\EventDispatcher\Event;
|
||||
|
||||
class LoginEvent extends Event
|
||||
{
|
||||
public function __construct(
|
||||
private User $user,
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return User|null
|
||||
*/
|
||||
public function getUser()
|
||||
{
|
||||
return $this->user;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user