Skip to content

Commit 97a0698

Browse files
authored
Use Hyperf\Context\ApplicationContext instead of Hyperf\Utils\ApplicationContext. (#5621)
1 parent 27586d5 commit 97a0698

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/BaseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
namespace Hyperf\GrpcClient;
1313

1414
use Google\Protobuf\Internal\Message;
15+
use Hyperf\Context\ApplicationContext;
1516
use Hyperf\Grpc\Parser;
1617
use Hyperf\Grpc\StatusCode;
1718
use Hyperf\GrpcClient\Exception\GrpcClientException;
18-
use Hyperf\Utils\ApplicationContext;
1919
use Hyperf\Utils\ChannelPool;
2020
use InvalidArgumentException;
2121
use Swoole\Http2\Response;

tests/BaseClientTest.php

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

1414
use Grpc\UserReply;
15+
use Hyperf\Context\ApplicationContext;
1516
use Hyperf\Di\Container;
1617
use Hyperf\Grpc\Parser;
1718
use Hyperf\GrpcClient\BaseClient;
1819
use Hyperf\GrpcClient\Exception\GrpcClientException;
19-
use Hyperf\Utils\ApplicationContext;
2020
use Hyperf\Utils\ChannelPool;
2121
use Hyperf\Utils\Coroutine;
2222
use Hyperf\Utils\Parallel;

tests/GoUserServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
*/
1212
namespace HyperfTest\GrpcClient;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Di\Container;
15-
use Hyperf\Utils\ApplicationContext;
1616
use Hyperf\Utils\ChannelPool;
1717
use HyperfTest\GrpcClient\Stub\UserServiceClient;
1818
use Mockery;

tests/RouteGuideClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
*/
1212
namespace HyperfTest\GrpcClient;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Di\Container;
1516
use Hyperf\GrpcClient\Exception\GrpcClientException;
1617
use Hyperf\GrpcClient\StreamingCall;
17-
use Hyperf\Utils\ApplicationContext;
1818
use Hyperf\Utils\ChannelPool;
1919
use HyperfTest\GrpcClient\Stub\RouteGuideClient;
2020
use Mockery;

0 commit comments

Comments
 (0)