Added StorageInterface

This commit is contained in:
Alex Bilbie 2014-11-07 02:29:04 +00:00
parent 3815355489
commit 4bbbc72035
2 changed files with 27 additions and 1 deletions

View File

@ -16,7 +16,7 @@ use League\OAuth2\Server\AbstractServer;
/**
* Abstract storage class
*/
abstract class AbstractStorage
abstract class AbstractStorage implements StorageInterface
{
/**
* Server

View File

@ -0,0 +1,26 @@
<?php
/**
* OAuth 2.0 Storage interface
*
* @package league/oauth2-server
* @author Alex Bilbie <hello@alexbilbie.com>
* @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);
}