refreshTokenRepository parameter can not be null, condition is obsolete

This commit is contained in:
filecage 2019-03-11 23:28:20 +01:00
parent aa5bbe5f06
commit ebf78132d7

View File

@ -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');
} }