mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-16 02:03:16 +05:30
44 lines
923 B
PHP
44 lines
923 B
PHP
<?php
|
|
|
|
namespace RelationalExample\Storage;
|
|
|
|
use League\OAuth2\Server\Storage\AuthCodeInterface;
|
|
use League\OAuth2\Server\Storage\Adapter;
|
|
use League\OAuth2\Server\Entity\AuthCodeEntity;
|
|
use League\OAuth2\Server\Entity\ScopeEntity;
|
|
|
|
class AuthCodeStorage extends Adapter implements AuthCodeInterface
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function get($code)
|
|
{
|
|
die(var_dump(__METHOD__, func_get_args()));
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getScopes(AuthCodeEntity $token)
|
|
{
|
|
die(var_dump(__METHOD__, func_get_args()));
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function associateScope(AuthCodeEntity $token, ScopeEntity $scope)
|
|
{
|
|
die(var_dump(__METHOD__, func_get_args()));
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function delete(AuthCodeEntity $token)
|
|
{
|
|
die(var_dump(__METHOD__, func_get_args()));
|
|
}
|
|
}
|