This commit is contained in:
Alex Bilbie
2016-03-17 14:37:21 +00:00
parent a350705a01
commit 251190d828
17 changed files with 415 additions and 271 deletions

View File

@@ -12,6 +12,7 @@ namespace League\OAuth2\Server\Grant;
use League\Event\EmitterAwareTrait;
use League\Event\Event;
use League\OAuth2\Server\CryptTrait;
use League\OAuth2\Server\Entities\AccessTokenEntity;
use League\OAuth2\Server\Entities\AuthCodeEntity;
use League\OAuth2\Server\Entities\Interfaces\AccessTokenEntityInterface;
@@ -32,7 +33,7 @@ use Psr\Http\Message\ServerRequestInterface;
*/
abstract class AbstractGrant implements GrantTypeInterface
{
use EmitterAwareTrait;
use EmitterAwareTrait, CryptTrait;
const SCOPE_DELIMITER_STRING = ' ';
@@ -71,16 +72,6 @@ abstract class AbstractGrant implements GrantTypeInterface
*/
protected $userRepository;
/**
* @var string
*/
protected $pathToPrivateKey;
/**
* @var string
*/
protected $pathToPublicKey;
/**
* @var \DateInterval
*/
@@ -134,22 +125,6 @@ abstract class AbstractGrant implements GrantTypeInterface
$this->userRepository = $userRepository;
}
/**
* @param string $pathToPrivateKey
*/
public function setPathToPrivateKey($pathToPrivateKey)
{
$this->pathToPrivateKey = $pathToPrivateKey;
}
/**
* @param string $pathToPublicKey
*/
public function setPathToPublicKey($pathToPublicKey)
{
$this->pathToPublicKey = $pathToPublicKey;
}
/**
* {@inheritdoc}
*/