From 742b51c2cd3758cd513ac17d18c78ac51a9a5bd0 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 1 Mar 2015 21:29:47 +0000 Subject: [PATCH] Removed domain events --- src/Event/ClientAuthenticationFailedEvent.php | 55 ------------------- src/Event/SessionOwnerEvent.php | 55 ------------------- src/Event/UserAuthenticationFailedEvent.php | 55 ------------------- 3 files changed, 165 deletions(-) delete mode 100644 src/Event/ClientAuthenticationFailedEvent.php delete mode 100644 src/Event/SessionOwnerEvent.php delete mode 100644 src/Event/UserAuthenticationFailedEvent.php 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; - } -}