Change example to use scope trait

This commit is contained in:
sephster 2018-10-12 23:23:24 +01:00
parent d6792c1662
commit d76025d613
No known key found for this signature in database
GPG Key ID: 077754CA23023F4F

View File

@ -11,13 +11,9 @@ namespace OAuth2ServerExamples\Entities;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\ScopeTrait;
class ScopeEntity implements ScopeEntityInterface
{
use EntityTrait;
public function jsonSerialize()
{
return $this->getIdentifier();
}
use EntityTrait, ScopeTrait;
}