mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-25 06:30:13 +05:30
ScopeEntity is JsonSerializable
This commit is contained in:
parent
9958e1bf80
commit
5f9feda80c
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace League\OAuth2\Server\Entities\Interfaces;
|
namespace League\OAuth2\Server\Entities\Interfaces;
|
||||||
|
|
||||||
interface ScopeEntityInterface
|
interface ScopeEntityInterface extends \JsonSerializable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Get the scope's identifier
|
* Get the scope's identifier
|
||||||
|
@ -11,4 +11,12 @@ use League\OAuth2\Server\Entities\Traits\EntityTrait;
|
|||||||
class ScopeEntity implements ScopeEntityInterface
|
class ScopeEntity implements ScopeEntityInterface
|
||||||
{
|
{
|
||||||
use EntityTrait;
|
use EntityTrait;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
function jsonSerialize()
|
||||||
|
{
|
||||||
|
return $this->getIdentifier();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user