From 71ac21b70efb011de449165be9e5378b962239cd Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 6 Aug 2014 08:41:50 +0100 Subject: [PATCH] Removed unnecessary methods --- examples/relational/Storage/AccessTokenStorage.php | 8 -------- examples/relational/Storage/SessionStorage.php | 8 -------- src/Storage/AccessTokenInterface.php | 7 ------- src/Storage/SessionInterface.php | 7 ------- 4 files changed, 30 deletions(-) diff --git a/examples/relational/Storage/AccessTokenStorage.php b/examples/relational/Storage/AccessTokenStorage.php index 12bd7737..cb81c2ff 100644 --- a/examples/relational/Storage/AccessTokenStorage.php +++ b/examples/relational/Storage/AccessTokenStorage.php @@ -34,14 +34,6 @@ class AccessTokenStorage extends Adapter implements AccessTokenInterface return null; } - /** - * {@inheritdoc} - */ - public function getByRefreshToken(RefreshTokenEntity $refreshToken) - { - die(var_dump(__METHOD__, func_get_args())); - } - /** * {@inheritdoc} */ diff --git a/examples/relational/Storage/SessionStorage.php b/examples/relational/Storage/SessionStorage.php index 62e3ba3b..9c02b18f 100644 --- a/examples/relational/Storage/SessionStorage.php +++ b/examples/relational/Storage/SessionStorage.php @@ -13,14 +13,6 @@ use Illuminate\Database\Capsule\Manager as Capsule; class SessionStorage extends Adapter implements SessionInterface { - /** - * {@inheritdoc} - */ - public function get($token) - { - die(var_dump(__METHOD__, func_get_args())); - } - /** * {@inheritdoc} */ diff --git a/src/Storage/AccessTokenInterface.php b/src/Storage/AccessTokenInterface.php index 29477818..fefa1fc1 100644 --- a/src/Storage/AccessTokenInterface.php +++ b/src/Storage/AccessTokenInterface.php @@ -28,13 +28,6 @@ interface AccessTokenInterface */ public function get($token); - /** - * Get the access token associated with an access token - * @param \League\OAuth2\Server\Entity\RefreshTokenEntity $refreshToken - * @return \League\OAuth2\Server\Entity\AccessTokenEntity - */ - public function getByRefreshToken(RefreshTokenEntity $refreshToken); - /** * Get the scopes for an access token * @param \League\OAuth2\Server\Entity\AbstractTokenEntity $token The access token diff --git a/src/Storage/SessionInterface.php b/src/Storage/SessionInterface.php index dddb2b63..3a1b1c33 100644 --- a/src/Storage/SessionInterface.php +++ b/src/Storage/SessionInterface.php @@ -21,13 +21,6 @@ use League\OAuth2\Server\Entity\ScopeEntity; */ interface SessionInterface { - /** - * Get a session from it's identifier - * @param string $sessionId - * @return \League\OAuth2\Server\Entity\SessionEntity - */ - public function get($sessionId); - /** * Get a session from an access token * @param \League\OAuth2\Server\Entity\AccessTokenEntity $accessToken The access token