diff --git a/src/Storage/AbstractStorage.php b/src/Storage/AbstractStorage.php index 5c18e7b8..b932e5a0 100644 --- a/src/Storage/AbstractStorage.php +++ b/src/Storage/AbstractStorage.php @@ -16,7 +16,7 @@ use League\OAuth2\Server\AbstractServer; /** * Abstract storage class */ -abstract class AbstractStorage +abstract class AbstractStorage implements StorageInterface { /** * Server diff --git a/src/Storage/StorageInterface.php b/src/Storage/StorageInterface.php new file mode 100644 index 00000000..ae9f0c74 --- /dev/null +++ b/src/Storage/StorageInterface.php @@ -0,0 +1,26 @@ + + * @copyright Copyright (c) Alex Bilbie + * @license http://mit-license.org/ + * @link https://github.com/thephpleague/oauth2-server + */ + +namespace League\OAuth2\Server\Storage; + +use League\OAuth2\Server\Entity\SessionEntity; + +/** + * Storage interface + */ +interface StorageInterface +{ + /** + * Set the server + * @param \League\OAuth2\Server\AbstractServer $server + */ + public function setServer(AbstractServer $server); +}