From a49f6ff80d2ed95914a04be237c844c817a974a8 Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Mon, 30 Oct 2017 23:36:19 +0000 Subject: [PATCH] Remove setting default scope in the constructor --- src/AuthorizationServer.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index 6da9c524..805d1e73 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -73,7 +73,7 @@ class AuthorizationServer implements EmitterAwareInterface /** * @var string */ - private $defaultScope; + private $defaultScope = null; /** * New server instance. @@ -83,7 +83,6 @@ class AuthorizationServer implements EmitterAwareInterface * @param ScopeRepositoryInterface $scopeRepository * @param CryptKey|string $privateKey * @param string $encryptionKey - * @param null|string $defaultScope * @param null|ResponseTypeInterface $responseType */ public function __construct( @@ -92,7 +91,6 @@ class AuthorizationServer implements EmitterAwareInterface ScopeRepositoryInterface $scopeRepository, $privateKey, $encryptionKey, - $defaultScope = null, ResponseTypeInterface $responseType = null ) { $this->clientRepository = $clientRepository; @@ -103,9 +101,6 @@ class AuthorizationServer implements EmitterAwareInterface $privateKey = new CryptKey($privateKey); } $this->privateKey = $privateKey; - - $this->defaultScope = $defaultScope; - $this->encryptionKey = $encryptionKey; $this->responseType = $responseType; }