From 12ab753f15517bdf558577e7de991b6c87e55ecf Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 4 Aug 2014 20:15:31 +0100 Subject: [PATCH] Updated associateScope method --- examples/relational/Storage/AccessTokenStorage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/relational/Storage/AccessTokenStorage.php b/examples/relational/Storage/AccessTokenStorage.php index e5b6d47c..12bd7737 100644 --- a/examples/relational/Storage/AccessTokenStorage.php +++ b/examples/relational/Storage/AccessTokenStorage.php @@ -86,7 +86,11 @@ class AccessTokenStorage extends Adapter implements AccessTokenInterface */ public function associateScope(AbstractTokenEntity $token, ScopeEntity $scope) { - die(var_dump(__METHOD__, func_get_args())); + Capsule::table('oauth_access_token_scopes') + ->insert([ + 'access_token' => $token->getId(), + 'scope' => $scope->getId() + ]); } /**