Skip to content

Commit 962506e

Browse files
committed
Makes ClaimRepository optional in AuthorizationServer constructor.
1 parent f6d5ed0 commit 962506e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/AuthorizationServer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,16 @@ class AuthorizationServer implements EmitterAwareInterface
9494
* @param CryptKey|string $privateKey
9595
* @param string|Key $encryptionKey
9696
* @param null|ResponseTypeInterface $responseType
97+
* @param null|ClaimRepositoryInterface $claimRepository
9798
*/
9899
public function __construct(
99100
ClientRepositoryInterface $clientRepository,
100101
AccessTokenRepositoryInterface $accessTokenRepository,
101102
ScopeRepositoryInterface $scopeRepository,
102-
ClaimRepositoryInterface $claimRepository,
103103
$privateKey,
104104
$encryptionKey,
105-
ResponseTypeInterface $responseType = null
105+
ResponseTypeInterface $responseType = null,
106+
ClaimRepositoryInterface $claimRepository = null
106107
) {
107108
$this->clientRepository = $clientRepository;
108109
$this->accessTokenRepository = $accessTokenRepository;

src/Grant/AbstractGrant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function setScopeRepository(ScopeRepositoryInterface $scopeRepository)
127127
/**
128128
* @param ClaimRepositoryInterface $claimRepository
129129
*/
130-
public function setClaimRepository(ClaimRepositoryInterface $claimRepository)
130+
public function setClaimRepository(?ClaimRepositoryInterface $claimRepository)
131131
{
132132
$this->claimRepository = $claimRepository;
133133
}

src/Grant/GrantTypeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function setScopeRepository(ScopeRepositoryInterface $scopeRepository);
127127
*
128128
* @param ClaimRepositoryInterface $claimRepository
129129
*/
130-
public function setClaimRepository(ClaimRepositoryInterface $claimRepository);
130+
public function setClaimRepository(?ClaimRepositoryInterface $claimRepository);
131131

132132
/**
133133
* Set the default scope.

0 commit comments

Comments
 (0)