Add default scope to the AbstractAuthorizeGrant

This commit is contained in:
Andrew Millington 2017-11-06 21:19:38 +00:00
parent ab760a805c
commit 42ea0de9fb

View File

@ -13,6 +13,11 @@ namespace League\OAuth2\Server\Grant;
abstract class AbstractAuthorizeGrant extends AbstractGrant
{
/**
* @var string
*/
protected $defaultScope = '';
/**
* @param string $uri
* @param array $params
@ -26,4 +31,12 @@ abstract class AbstractAuthorizeGrant extends AbstractGrant
return $uri . http_build_query($params);
}
/**
* @param string $scope
*/
public function setDefaultScope($scope)
{
$this->defaultScope = $scope;
}
}