Public key is set in abstract grant now

This commit is contained in:
Alex Bilbie 2016-01-17 14:21:53 +00:00
parent f6664c6917
commit 5a8659471c

View File

@ -30,25 +30,17 @@ class RefreshTokenGrant extends AbstractGrant
*/ */
protected $identifier = 'refresh_token'; protected $identifier = 'refresh_token';
/**
* @var string
*/
private $pathToPublicKey;
/** /**
* @var \League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface * @var \League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface
*/ */
private $refreshTokenRepository; private $refreshTokenRepository;
/** /**
* @param string $pathToPublicKey
* @param \League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface $refreshTokenRepository * @param \League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface $refreshTokenRepository
*/ */
public function __construct( public function __construct(
$pathToPublicKey,
RefreshTokenRepositoryInterface $refreshTokenRepository RefreshTokenRepositoryInterface $refreshTokenRepository
) { ) {
$this->pathToPublicKey = $pathToPublicKey;
$this->refreshTokenRepository = $refreshTokenRepository; $this->refreshTokenRepository = $refreshTokenRepository;
} }