From 645f719ee9be904e502d54e610bbc77b8e51aab7 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 17 Jan 2016 13:55:12 +0000 Subject: [PATCH] Added new repository setter methods to GrantTypeInterface --- src/Grant/GrantTypeInterface.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Grant/GrantTypeInterface.php b/src/Grant/GrantTypeInterface.php index 3b775bfb..4a474af5 100644 --- a/src/Grant/GrantTypeInterface.php +++ b/src/Grant/GrantTypeInterface.php @@ -13,6 +13,9 @@ namespace League\OAuth2\Server\Grant; use DateInterval; use League\Event\EmitterInterface; +use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface; +use League\OAuth2\Server\Repositories\ClientRepositoryInterface; +use League\OAuth2\Server\Repositories\ScopeRepositoryInterface; use League\OAuth2\Server\ResponseTypes\ResponseTypeInterface; use Psr\Http\Message\ServerRequestInterface; @@ -70,4 +73,26 @@ interface GrantTypeInterface * @param \League\Event\EmitterInterface $emitter */ public function setEmitter(EmitterInterface $emitter); + + /** + * Set the client repository + * + * @param \League\OAuth2\Server\Repositories\ClientRepositoryInterface $clientRepository + */ + public function setClientRepository(ClientRepositoryInterface $clientRepository); + + /** + * Set the access token repository + * + * @param \League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface $accessTokenRepository + */ + public function setAccessTokenRepository(AccessTokenRepositoryInterface $accessTokenRepository); + + /** + * Set the scope repository + * + * @param \League\OAuth2\Server\Repositories\ScopeRepositoryInterface $scopeRepository + */ + public function setScopeRepository(ScopeRepositoryInterface $scopeRepository); + }