Skip to content

Commit f694879

Browse files
authored
Use Hyperf/Context/Context instead of Hyperf/Utils/Context. (#4565)
1 parent d2a5dd4 commit f694879

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/Environment.php

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

14-
use Hyperf\Utils\Context;
14+
use Hyperf\Context\Context;
1515

1616
class Environment
1717
{

tests/AsyncQueueAspectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
use Hyperf\AsyncQueue\Driver\DriverFactory;
1818
use Hyperf\AsyncQueue\Driver\DriverInterface;
1919
use Hyperf\AsyncQueue\Environment;
20+
use Hyperf\Context\Context;
2021
use Hyperf\Di\Annotation\AnnotationCollector;
2122
use Hyperf\Di\Annotation\Aspect;
2223
use Hyperf\Di\Aop\Ast;
2324
use Hyperf\Di\ReflectionManager;
2425
use Hyperf\Utils\ApplicationContext;
25-
use Hyperf\Utils\Context;
2626
use HyperfTest\AsyncQueue\Stub\FooProxy;
2727
use Mockery;
2828
use PHPUnit\Framework\TestCase;

tests/RedisDriverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
use Hyperf\AsyncQueue\Driver\RedisDriver;
1616
use Hyperf\AsyncQueue\JobMessage;
1717
use Hyperf\AsyncQueue\Message;
18+
use Hyperf\Context\Context;
1819
use Hyperf\Di\Container;
1920
use Hyperf\Redis\RedisFactory;
2021
use Hyperf\Utils\ApplicationContext;
21-
use Hyperf\Utils\Context;
2222
use Hyperf\Utils\Packer\PhpSerializerPacker;
2323
use Hyperf\Utils\Str;
2424
use HyperfTest\AsyncQueue\Stub\DemoJob;

tests/Stub/DemoModel.php

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

14+
use Hyperf\Context\Context;
1415
use Hyperf\Contract\CompressInterface;
1516
use Hyperf\Contract\UnCompressInterface;
16-
use Hyperf\Utils\Context;
1717

1818
class DemoModel implements CompressInterface
1919
{

tests/Stub/DemoModelMeta.php

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

14+
use Hyperf\Context\Context;
1415
use Hyperf\Contract\UnCompressInterface;
15-
use Hyperf\Utils\Context;
1616

1717
class DemoModelMeta implements UnCompressInterface
1818
{

tests/Stub/FooProxy.php

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

1414
use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;
15-
use Hyperf\Utils\Context;
15+
use Hyperf\Context\Context;
1616

1717
class FooProxy
1818
{

tests/Stub/Redis.php

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

14+
use Hyperf\Context\Context;
1415
use Hyperf\Redis\RedisProxy;
15-
use Hyperf\Utils\Context;
1616

1717
class Redis extends RedisProxy
1818
{

0 commit comments

Comments
 (0)