Skip to content

Commit

Permalink
Use Hyperf\Context\ApplicationContext instead of `Hyperf\Utils\Appl…
Browse files Browse the repository at this point in the history
…icationContext`. (#5621)
  • Loading branch information
limingxinleo authored Apr 11, 2023
1 parent f0572d5 commit 8e3770b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/AnnotationJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/
namespace Hyperf\AsyncQueue;

use Hyperf\Context\ApplicationContext;
use Hyperf\Contract\CompressInterface;
use Hyperf\Contract\UnCompressInterface;
use Hyperf\Utils\ApplicationContext;

class AnnotationJob extends Job
{
Expand Down
2 changes: 1 addition & 1 deletion src/Driver/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
use Hyperf\Collection\Arr;
use Hyperf\Contract\PackerInterface;
use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\Coroutine\Concurrent;
use Hyperf\Process\ProcessManager;
use Hyperf\Utils\Coroutine\Concurrent;
use Hyperf\Utils\Packer\PhpSerializerPacker;
use Psr\Container\ContainerInterface;
use Psr\EventDispatcher\EventDispatcherInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/AsyncQueueAspectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
use Hyperf\AsyncQueue\Driver\DriverFactory;
use Hyperf\AsyncQueue\Driver\DriverInterface;
use Hyperf\AsyncQueue\Environment;
use Hyperf\Context\ApplicationContext;
use Hyperf\Context\Context;
use Hyperf\Di\Annotation\AnnotationCollector;
use Hyperf\Di\Annotation\Aspect;
use Hyperf\Di\Aop\Ast;
use Hyperf\Di\ReflectionManager;
use Hyperf\Utils\ApplicationContext;
use HyperfTest\AsyncQueue\Stub\FooProxy;
use Mockery;
use PHPUnit\Framework\TestCase;
Expand Down
4 changes: 2 additions & 2 deletions tests/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
namespace HyperfTest\AsyncQueue;

use Hyperf\AsyncQueue\Driver\ChannelConfig;
use Hyperf\Context\ApplicationContext;
use Hyperf\Coroutine\Concurrent;
use Hyperf\Di\Container;
use Hyperf\Redis\RedisFactory;
use Hyperf\Utils\ApplicationContext;
use Hyperf\Utils\Coroutine\Concurrent;
use Hyperf\Utils\Packer\PhpSerializerPacker;
use HyperfTest\AsyncQueue\Stub\Redis;
use HyperfTest\AsyncQueue\Stub\RedisDriverStub;
Expand Down
2 changes: 1 addition & 1 deletion tests/RedisDriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
use Hyperf\AsyncQueue\Driver\RedisDriver;
use Hyperf\AsyncQueue\JobMessage;
use Hyperf\AsyncQueue\Message;
use Hyperf\Context\ApplicationContext;
use Hyperf\Context\Context;
use Hyperf\Di\Container;
use Hyperf\Redis\RedisFactory;
use Hyperf\Utils\ApplicationContext;
use Hyperf\Utils\Packer\PhpSerializerPacker;
use Hyperf\Utils\Str;
use HyperfTest\AsyncQueue\Stub\DemoJob;
Expand Down
2 changes: 1 addition & 1 deletion tests/Stub/RedisDriverStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace HyperfTest\AsyncQueue\Stub;

use Hyperf\AsyncQueue\Driver\RedisDriver;
use Hyperf\Utils\Coroutine\Concurrent;
use Hyperf\Coroutine\Concurrent;

class RedisDriverStub extends RedisDriver
{
Expand Down

0 comments on commit 8e3770b

Please sign in to comment.