SAND-framework/console/skel/symfony-app/src/Events/OnAuthenticationSuccessEvent.php
2020-12-09 10:26:26 +01:00

34 lines
760 B
PHP

<?php
namespace App\Events;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\HttpFoundation\Request;
class OnAuthenticationSuccessEvent extends Event
{
const NAME = "session_auth.event.on_authentication_success";
public function __construct(Request $request, TokenInterface $token, $providerKey)
{
$this->request = $request;
$this->token = $token;
$this->providerKey = $providerKey;
}
public function getRequest()
{
return $this->request;
}
public function getToken()
{
return $this->exception;
}
public function getProviderKey()
{
return $this->providerKey;
}
}