2014-05-09 15:16:59 +05:30
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace RelationalExample\Storage;
|
|
|
|
|
|
|
|
use League\OAuth2\Server\Storage\AuthCodeInterface;
|
|
|
|
use League\OAuth2\Server\Storage\Adapter;
|
2014-05-23 20:55:09 +05:30
|
|
|
use League\OAuth2\Server\Entity\AuthCodeEntity;
|
|
|
|
use League\OAuth2\Server\Entity\ScopeEntity;
|
2014-05-09 15:16:59 +05:30
|
|
|
|
|
|
|
class AuthCodeStorage extends Adapter implements AuthCodeInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
2014-05-23 20:55:09 +05:30
|
|
|
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)
|
2014-05-09 15:16:59 +05:30
|
|
|
{
|
|
|
|
die(var_dump(__METHOD__, func_get_args()));
|
|
|
|
}
|
|
|
|
}
|