From a2a768b6e6f737ded89eb47b600158db80f1d6b1 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 7 Nov 2014 02:31:37 +0000 Subject: [PATCH] All interfaces extend StorageInterface --- src/Storage/AccessTokenInterface.php | 2 +- src/Storage/AuthCodeInterface.php | 2 +- src/Storage/ClientInterface.php | 2 +- src/Storage/RefreshTokenInterface.php | 2 +- src/Storage/ScopeInterface.php | 2 +- src/Storage/SessionInterface.php | 2 +- src/Storage/StorageInterface.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Storage/AccessTokenInterface.php b/src/Storage/AccessTokenInterface.php index fefa1fc1..126efb0b 100644 --- a/src/Storage/AccessTokenInterface.php +++ b/src/Storage/AccessTokenInterface.php @@ -19,7 +19,7 @@ use League\OAuth2\Server\Entity\ScopeEntity; /** * Access token interface */ -interface AccessTokenInterface +interface AccessTokenInterface extends StorageInterface { /** * Get an instance of Entity\AccessTokenEntity diff --git a/src/Storage/AuthCodeInterface.php b/src/Storage/AuthCodeInterface.php index fab3ee2f..c95f636f 100644 --- a/src/Storage/AuthCodeInterface.php +++ b/src/Storage/AuthCodeInterface.php @@ -17,7 +17,7 @@ use League\OAuth2\Server\Entity\ScopeEntity; /** * Auth code storage interface */ -interface AuthCodeInterface +interface AuthCodeInterface extends StorageInterface { /** * Get the auth code diff --git a/src/Storage/ClientInterface.php b/src/Storage/ClientInterface.php index 202e4b02..44f7b11a 100644 --- a/src/Storage/ClientInterface.php +++ b/src/Storage/ClientInterface.php @@ -16,7 +16,7 @@ use League\OAuth2\Server\Entity\SessionEntity; /** * Client storage interface */ -interface ClientInterface +interface ClientInterface extends StorageInterface { /** * Validate a client diff --git a/src/Storage/RefreshTokenInterface.php b/src/Storage/RefreshTokenInterface.php index 38621295..5be23d1c 100644 --- a/src/Storage/RefreshTokenInterface.php +++ b/src/Storage/RefreshTokenInterface.php @@ -16,7 +16,7 @@ use League\OAuth2\Server\Entity\RefreshTokenEntity; /** * Refresh token interface */ -interface RefreshTokenInterface +interface RefreshTokenInterface extends StorageInterface { /** * Return a new instance of \League\OAuth2\Server\Entity\RefreshTokenEntity diff --git a/src/Storage/ScopeInterface.php b/src/Storage/ScopeInterface.php index 986510ed..95ff8aac 100644 --- a/src/Storage/ScopeInterface.php +++ b/src/Storage/ScopeInterface.php @@ -14,7 +14,7 @@ namespace League\OAuth2\Server\Storage; /** * Scope interface */ -interface ScopeInterface +interface ScopeInterface extends StorageInterface { /** * Return information about a scope diff --git a/src/Storage/SessionInterface.php b/src/Storage/SessionInterface.php index 3a1b1c33..545df304 100644 --- a/src/Storage/SessionInterface.php +++ b/src/Storage/SessionInterface.php @@ -19,7 +19,7 @@ use League\OAuth2\Server\Entity\ScopeEntity; /** * Session storage interface */ -interface SessionInterface +interface SessionInterface extends StorageInterface { /** * Get a session from an access token diff --git a/src/Storage/StorageInterface.php b/src/Storage/StorageInterface.php index ae9f0c74..e1c7b83d 100644 --- a/src/Storage/StorageInterface.php +++ b/src/Storage/StorageInterface.php @@ -11,7 +11,7 @@ namespace League\OAuth2\Server\Storage; -use League\OAuth2\Server\Entity\SessionEntity; +use League\OAuth2\Server\AbstractServer; /** * Storage interface