mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Revert changes to throws and returns ordering
This commit is contained in:
parent
f96fca3b48
commit
c0efdf0dd0
@ -236,8 +236,9 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
* @param string|array $scopes
|
* @param string|array $scopes
|
||||||
* @param string $redirectUri
|
* @param string $redirectUri
|
||||||
*
|
*
|
||||||
* @return ScopeEntityInterface[]
|
|
||||||
* @throws OAuthServerException
|
* @throws OAuthServerException
|
||||||
|
*
|
||||||
|
* @return ScopeEntityInterface[]
|
||||||
*/
|
*/
|
||||||
public function validateScopes($scopes, $redirectUri = null)
|
public function validateScopes($scopes, $redirectUri = null)
|
||||||
{
|
{
|
||||||
@ -373,9 +374,10 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
* @param string|null $userIdentifier
|
* @param string|null $userIdentifier
|
||||||
* @param ScopeEntityInterface[] $scopes
|
* @param ScopeEntityInterface[] $scopes
|
||||||
*
|
*
|
||||||
* @return AccessTokenEntityInterface
|
|
||||||
* @throws OAuthServerException
|
* @throws OAuthServerException
|
||||||
* @throws UniqueTokenIdentifierConstraintViolationException
|
* @throws UniqueTokenIdentifierConstraintViolationException
|
||||||
|
*
|
||||||
|
* @return AccessTokenEntityInterface
|
||||||
*/
|
*/
|
||||||
protected function issueAccessToken(
|
protected function issueAccessToken(
|
||||||
\DateInterval $accessTokenTTL,
|
\DateInterval $accessTokenTTL,
|
||||||
@ -493,8 +495,9 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
*
|
*
|
||||||
* @param int $length
|
* @param int $length
|
||||||
*
|
*
|
||||||
* @return string
|
|
||||||
* @throws OAuthServerException
|
* @throws OAuthServerException
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function generateUniqueIdentifier($length = 40)
|
protected function generateUniqueIdentifier($length = 40)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user