mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 21:49:50 +05:30
34 lines
657 B
PHP
34 lines
657 B
PHP
|
<?php
|
||
|
|
||
|
namespace RelationalExample\Storage;
|
||
|
|
||
|
use League\OAuth2\Server\Storage\RefreshTokenInterface;
|
||
|
use League\OAuth2\Server\Storage\Adapter;
|
||
|
|
||
|
class RefreshTokenStorage extends Adapter implements RefreshTokenInterface
|
||
|
{
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function get($token)
|
||
|
{
|
||
|
die(var_dump(__METHOD__, func_get_args()));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function create($token, $expireTime, $accessToken)
|
||
|
{
|
||
|
die(var_dump(__METHOD__, func_get_args()));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function delete($token)
|
||
|
{
|
||
|
die(var_dump(__METHOD__, func_get_args()));
|
||
|
}
|
||
|
}
|