From 512d4898e230f6edce995e8c00504e7e96ef144b Mon Sep 17 00:00:00 2001 From: Sephster Date: Mon, 13 Nov 2017 22:20:16 +0000 Subject: [PATCH] Revert previous change --- src/AuthorizationServer.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index f8674004..42313bff 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -121,14 +121,11 @@ class AuthorizationServer implements EmitterAwareInterface $grantType->setAccessTokenRepository($this->accessTokenRepository); $grantType->setClientRepository($this->clientRepository); $grantType->setScopeRepository($this->scopeRepository); + $grantType->setDefaultScope($this->defaultScope); $grantType->setPrivateKey($this->privateKey); $grantType->setEmitter($this->getEmitter()); $grantType->setEncryptionKey($this->encryptionKey); - if ($grantType instanceof AbstractAuthorizeGrant) { - $grantType->setDefaultScope($this->defaultScope); - } - $this->enabledGrantTypes[$grantType->getIdentifier()] = $grantType; $this->grantTypeAccessTokenTTL[$grantType->getIdentifier()] = $accessTokenTTL; }