mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-30 10:42:02 +05:30
refreshTokenRepository
parameter can not be null, condition is obsolete
This commit is contained in:
parent
aa5bbe5f06
commit
ebf78132d7
@ -35,10 +35,7 @@ class PasswordGrant extends AbstractGrant
|
|||||||
RefreshTokenRepositoryInterface $refreshTokenRepository
|
RefreshTokenRepositoryInterface $refreshTokenRepository
|
||||||
) {
|
) {
|
||||||
$this->setUserRepository($userRepository);
|
$this->setUserRepository($userRepository);
|
||||||
|
|
||||||
if ($refreshTokenRepository !== null) {
|
|
||||||
$this->setRefreshTokenRepository($refreshTokenRepository);
|
$this->setRefreshTokenRepository($refreshTokenRepository);
|
||||||
}
|
|
||||||
|
|
||||||
$this->refreshTokenTTL = new DateInterval('P1M');
|
$this->refreshTokenTTL = new DateInterval('P1M');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user