mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-25 14:40:00 +05:30
Merge pull request #253 from bajb/master
Update Adapter to AbstractStorage in examples/relational
This commit is contained in:
commit
3104d13eba
@ -6,10 +6,10 @@ use Illuminate\Database\Capsule\Manager as Capsule;
|
|||||||
use League\OAuth2\Server\Entity\AbstractTokenEntity;
|
use League\OAuth2\Server\Entity\AbstractTokenEntity;
|
||||||
use League\OAuth2\Server\Entity\AccessTokenEntity;
|
use League\OAuth2\Server\Entity\AccessTokenEntity;
|
||||||
use League\OAuth2\Server\Entity\ScopeEntity;
|
use League\OAuth2\Server\Entity\ScopeEntity;
|
||||||
|
use League\OAuth2\Server\Storage\AbstractStorage;
|
||||||
use League\OAuth2\Server\Storage\AccessTokenInterface;
|
use League\OAuth2\Server\Storage\AccessTokenInterface;
|
||||||
use League\OAuth2\Server\Storage\Adapter;
|
|
||||||
|
|
||||||
class AccessTokenStorage extends Adapter implements AccessTokenInterface
|
class AccessTokenStorage extends AbstractStorage implements AccessTokenInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@ -5,10 +5,10 @@ namespace RelationalExample\Storage;
|
|||||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||||
use League\OAuth2\Server\Entity\AuthCodeEntity;
|
use League\OAuth2\Server\Entity\AuthCodeEntity;
|
||||||
use League\OAuth2\Server\Entity\ScopeEntity;
|
use League\OAuth2\Server\Entity\ScopeEntity;
|
||||||
use League\OAuth2\Server\Storage\Adapter;
|
use League\OAuth2\Server\Storage\AbstractStorage;
|
||||||
use League\OAuth2\Server\Storage\AuthCodeInterface;
|
use League\OAuth2\Server\Storage\AuthCodeInterface;
|
||||||
|
|
||||||
class AuthCodeStorage extends Adapter implements AuthCodeInterface
|
class AuthCodeStorage extends AbstractStorage implements AuthCodeInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@ -5,10 +5,10 @@ namespace RelationalExample\Storage;
|
|||||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||||
use League\OAuth2\Server\Entity\ClientEntity;
|
use League\OAuth2\Server\Entity\ClientEntity;
|
||||||
use League\OAuth2\Server\Entity\SessionEntity;
|
use League\OAuth2\Server\Entity\SessionEntity;
|
||||||
use League\OAuth2\Server\Storage\Adapter;
|
use League\OAuth2\Server\Storage\AbstractStorage;
|
||||||
use League\OAuth2\Server\Storage\ClientInterface;
|
use League\OAuth2\Server\Storage\ClientInterface;
|
||||||
|
|
||||||
class ClientStorage extends Adapter implements ClientInterface
|
class ClientStorage extends AbstractStorage implements ClientInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@ -4,10 +4,10 @@ namespace RelationalExample\Storage;
|
|||||||
|
|
||||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||||
use League\OAuth2\Server\Entity\RefreshTokenEntity;
|
use League\OAuth2\Server\Entity\RefreshTokenEntity;
|
||||||
use League\OAuth2\Server\Storage\Adapter;
|
use League\OAuth2\Server\Storage\AbstractStorage;
|
||||||
use League\OAuth2\Server\Storage\RefreshTokenInterface;
|
use League\OAuth2\Server\Storage\RefreshTokenInterface;
|
||||||
|
|
||||||
class RefreshTokenStorage extends Adapter implements RefreshTokenInterface
|
class RefreshTokenStorage extends AbstractStorage implements RefreshTokenInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@ -4,10 +4,10 @@ namespace RelationalExample\Storage;
|
|||||||
|
|
||||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||||
use League\OAuth2\Server\Entity\ScopeEntity;
|
use League\OAuth2\Server\Entity\ScopeEntity;
|
||||||
use League\OAuth2\Server\Storage\Adapter;
|
use League\OAuth2\Server\Storage\AbstractStorage;
|
||||||
use League\OAuth2\Server\Storage\ScopeInterface;
|
use League\OAuth2\Server\Storage\ScopeInterface;
|
||||||
|
|
||||||
class ScopeStorage extends Adapter implements ScopeInterface
|
class ScopeStorage extends AbstractStorage implements ScopeInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@ -7,10 +7,10 @@ use League\OAuth2\Server\Entity\AccessTokenEntity;
|
|||||||
use League\OAuth2\Server\Entity\AuthCodeEntity;
|
use League\OAuth2\Server\Entity\AuthCodeEntity;
|
||||||
use League\OAuth2\Server\Entity\ScopeEntity;
|
use League\OAuth2\Server\Entity\ScopeEntity;
|
||||||
use League\OAuth2\Server\Entity\SessionEntity;
|
use League\OAuth2\Server\Entity\SessionEntity;
|
||||||
use League\OAuth2\Server\Storage\Adapter;
|
use League\OAuth2\Server\Storage\AbstractStorage;
|
||||||
use League\OAuth2\Server\Storage\SessionInterface;
|
use League\OAuth2\Server\Storage\SessionInterface;
|
||||||
|
|
||||||
class SessionStorage extends Adapter implements SessionInterface
|
class SessionStorage extends AbstractStorage implements SessionInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
Loading…
Reference in New Issue
Block a user