mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Required repositories are now set by the server
This commit is contained in:
parent
03391e9630
commit
90d9d7bdd6
@ -69,20 +69,29 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
protected $scopeRepository;
|
protected $scopeRepository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \League\OAuth2\Server\Repositories\ClientRepositoryInterface $clientRepository
|
* @param ClientRepositoryInterface $clientRepository
|
||||||
* @param \League\OAuth2\Server\Repositories\ScopeRepositoryInterface $scopeRepository
|
|
||||||
* @param \League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface $accessTokenRepository
|
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function setClientRepository(ClientRepositoryInterface $clientRepository)
|
||||||
ClientRepositoryInterface $clientRepository,
|
{
|
||||||
ScopeRepositoryInterface $scopeRepository,
|
|
||||||
AccessTokenRepositoryInterface $accessTokenRepository
|
|
||||||
) {
|
|
||||||
$this->clientRepository = $clientRepository;
|
$this->clientRepository = $clientRepository;
|
||||||
$this->scopeRepository = $scopeRepository;
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param AccessTokenRepositoryInterface $accessTokenRepository
|
||||||
|
*/
|
||||||
|
public function setAccessTokenRepository(AccessTokenRepositoryInterface $accessTokenRepository)
|
||||||
|
{
|
||||||
$this->accessTokenRepository = $accessTokenRepository;
|
$this->accessTokenRepository = $accessTokenRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param ScopeRepositoryInterface $scopeRepository
|
||||||
|
*/
|
||||||
|
public function setScopeRepository(ScopeRepositoryInterface $scopeRepository)
|
||||||
|
{
|
||||||
|
$this->scopeRepository = $scopeRepository;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user