Skip to content

Commit 3584066

Browse files
Instead of classes and functions of Hyperf\Utils (#5674)
Co-authored-by: 李铭昕 <[email protected]>
1 parent d4b3891 commit 3584066

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"require": {
2222
"php": ">=8.0",
2323
"hyperf/tappable": "~3.0.0",
24+
"hyperf/support": "~3.0.0",
2425
"hyperf/utils": "~3.0.0",
2526
"psr/event-dispatcher": "^1.0",
2627
"symfony/console": "^5.0|^6.0"

src/Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
use function Hyperf\Collection\collect;
3232
use function Hyperf\Coroutine\run;
33+
use function Hyperf\Support\swoole_hook_flags;
3334
use function Hyperf\Tappable\tap;
3435

3536
abstract class Command extends SymfonyCommand

src/ConfirmableTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
use Closure;
1515

16+
use function Hyperf\Support\value;
17+
1618
trait ConfirmableTrait
1719
{
1820
/**

tests/CommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace HyperfTest\Command;
1313

1414
use Hyperf\Context\ApplicationContext;
15-
use Hyperf\Utils\Reflection\ClassInvoker;
15+
use Hyperf\Support\Reflection\ClassInvoker;
1616
use HyperfTest\Command\Command\DefaultSwooleFlagsCommand;
1717
use HyperfTest\Command\Command\FooCommand;
1818
use HyperfTest\Command\Command\FooExceptionCommand;

0 commit comments

Comments
 (0)