Skip to content

Commit 2c54308

Browse files
tw2066huangdijia
authored andcommitted
AbstractLock use Macroable (#1045)
* AbstractLock use Macroable * Update docs and translate * add composer dependencies --------- Co-authored-by: tw2066 <24579418+tw2066@users.noreply.github.com>
1 parent 45bc121 commit 2c54308

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

docs/zh-hk/components/telescope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ return [
5050
];
5151
```
5252

53-
> 注意: 請求追蹤功能已通過 RequestHandledListener 自動啟用。TelescopeMiddleware 僅用於 gRPC 的額外功能。
53+
> 注意: 請求跟蹤功能已通過 RequestHandledListener 自動啓用。TelescopeMiddleware 僅用於 gRPC 的額外功能。
5454
5555
## 查看儀表板
5656

docs/zh-tw/components/telescope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ return [
5050
];
5151
```
5252

53-
> 注意: 請求追蹤功能已透過 RequestHandledListener 自動啟用。TelescopeMiddleware 僅用於 gRPC 的額外功能。
53+
> 注意: 請求跟蹤功能已透過 RequestHandledListener 自動啟用。TelescopeMiddleware 僅用於 gRPC 的額外功能。
5454
5555
## 檢視儀表板
5656

src/lock/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"require": {
2323
"hyperf/config": "~3.2.0",
2424
"hyperf/context": "~3.2.0",
25+
"hyperf/macroable": "~3.2.0",
2526
"hyperf/stringable": "~3.2.0",
2627
"hyperf/support": "~3.2.0",
2728
"nesbot/carbon": "^2.0 || ^3.0"

src/lock/src/Driver/AbstractLock.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace FriendsOfHyperf\Lock\Driver;
1313

1414
use FriendsOfHyperf\Lock\Exception\LockTimeoutException;
15+
use Hyperf\Macroable\Macroable;
1516
use Hyperf\Stringable\Str;
1617
use Hyperf\Support\Traits\InteractsWithTime;
1718
use Override;
@@ -21,6 +22,7 @@
2122
abstract class AbstractLock implements LockInterface
2223
{
2324
use InteractsWithTime;
25+
use Macroable;
2426

2527
/**
2628
* The scope identifier of this lock.

0 commit comments

Comments
 (0)