From d76025d61338f77c8d6dbff2acd3462aaa5ceb9b Mon Sep 17 00:00:00 2001 From: sephster Date: Fri, 12 Oct 2018 23:23:24 +0100 Subject: [PATCH] Change example to use scope trait --- examples/src/Entities/ScopeEntity.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/src/Entities/ScopeEntity.php b/examples/src/Entities/ScopeEntity.php index ec83cf51..913c0592 100644 --- a/examples/src/Entities/ScopeEntity.php +++ b/examples/src/Entities/ScopeEntity.php @@ -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; }