diff --git a/src/Event/ClientAuthenticationFailedEvent.php b/src/Event/ClientAuthenticationFailedEvent.php deleted file mode 100644 index 4448bb4e..00000000 --- a/src/Event/ClientAuthenticationFailedEvent.php +++ /dev/null @@ -1,55 +0,0 @@ - - * @copyright Copyright (c) Alex Bilbie - * @license http://mit-license.org/ - * @link https://github.com/thephpleague/oauth2-server - */ - -namespace League\OAuth2\Server\Event; - -use League\Event\AbstractEvent; -use Symfony\Component\HttpFoundation\Request; - -class ClientAuthenticationFailedEvent extends AbstractEvent -{ - /** - * Request - * - * @var \Symfony\Component\HttpFoundation\Request - */ - private $request; - - /** - * Init the event with a request - * - * @param \Symfony\Component\HttpFoundation\Request $request - */ - public function __construct(Request $request) - { - $this->request = $request; - } - - /** - * The name of the event - * - * @return string - */ - public function getName() - { - return 'error.auth.client'; - } - - /** - * Return request - * - * @return \Symfony\Component\HttpFoundation\Request - */ - public function getRequest() - { - return $this->request; - } -} diff --git a/src/Event/SessionOwnerEvent.php b/src/Event/SessionOwnerEvent.php deleted file mode 100644 index 83c4e766..00000000 --- a/src/Event/SessionOwnerEvent.php +++ /dev/null @@ -1,55 +0,0 @@ - - * @copyright Copyright (c) Alex Bilbie - * @license http://mit-license.org/ - * @link https://github.com/thephpleague/oauth2-server - */ - -namespace League\OAuth2\Server\Event; - -use League\Event\AbstractEvent; -use League\OAuth2\Server\Entity\SessionEntity; - -class SessionOwnerEvent extends AbstractEvent -{ - /** - * Session entity - * - * @var \League\OAuth2\Server\Entity\SessionEntity - */ - private $session; - - /** - * Init the event with a session - * - * @param \League\OAuth2\Server\Entity\SessionEntity $session - */ - public function __construct(SessionEntity $session) - { - $this->session = $session; - } - - /** - * The name of the event - * - * @return string - */ - public function getName() - { - return 'session.owner'; - } - - /** - * Return session - * - * @return \League\OAuth2\Server\Entity\SessionEntity - */ - public function getSession() - { - return $this->session; - } -} diff --git a/src/Event/UserAuthenticationFailedEvent.php b/src/Event/UserAuthenticationFailedEvent.php deleted file mode 100644 index 4cd8c4cd..00000000 --- a/src/Event/UserAuthenticationFailedEvent.php +++ /dev/null @@ -1,55 +0,0 @@ - - * @copyright Copyright (c) Alex Bilbie - * @license http://mit-license.org/ - * @link https://github.com/thephpleague/oauth2-server - */ - -namespace League\OAuth2\Server\Event; - -use League\Event\AbstractEvent; -use Symfony\Component\HttpFoundation\Request; - -class UserAuthenticationFailedEvent extends AbstractEvent -{ - /** - * Request - * - * @var \Symfony\Component\HttpFoundation\Request - */ - private $request; - - /** - * Init the event with a request - * - * @param \Symfony\Component\HttpFoundation\Request $request - */ - public function __construct(Request $request) - { - $this->request = $request; - } - - /** - * The name of the event - * - * @return string - */ - public function getName() - { - return 'error.auth.user'; - } - - /** - * Return request - * - * @return \Symfony\Component\HttpFoundation\Request - */ - public function getRequest() - { - return $this->request; - } -}