Skip to content

Commit fb8cd29

Browse files
committed
update: 兼容升级
1 parent 424449e commit fb8cd29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CacheTokenRepository.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ class CacheTokenRepository extends TokenRepository
3535
* @param int $expiresInSeconds
3636
* @param array $tags
3737
*/
38-
public function __construct(string $cacheKey = null, int $expiresInSeconds = null, array $tags = [], string $store = 'file')
38+
public function __construct(string $cacheKey = null, int $expiresInSeconds = null, array $tags = [], ?string $store = null)
3939
{
4040
$this->cacheKey = $cacheKey ?? 'passport_token_';
4141
$this->expiresInSeconds = $expiresInSeconds ?? 5 * 60;
4242
$this->cacheTags = $tags;
43-
$this->cacheStore = $store;
43+
$this->cacheStore = $store ?? \config('cache.default');
4444
}
4545

4646
/**

0 commit comments

Comments
 (0)