SAND-framework/console/skel/symfony-app/src/Events/OnAuthenticationSuccessEvent.php

34 lines
760 B
PHP
Raw Normal View History

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