Skip to content

Commit c6afc97

Browse files
authored
Use Hyperf\Context\ApplicationContext instead of Hyperf\Utils\ApplicationContext. (#5621)
1 parent bee83c7 commit c6afc97

8 files changed

+8
-8
lines changed

src/Aop/ProxyTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
namespace Hyperf\Di\Aop;
1313

1414
use Closure;
15+
use Hyperf\Context\ApplicationContext;
1516
use Hyperf\Di\Annotation\AnnotationCollector;
1617
use Hyperf\Di\Annotation\AspectCollector;
1718
use Hyperf\Di\ReflectionManager;
18-
use Hyperf\Utils\ApplicationContext;
1919
use SplPriorityQueue;
2020

2121
trait ProxyTrait

src/Aop/RegisterInjectPropertyHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
*/
1212
namespace Hyperf\Di\Aop;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Di\Annotation\Inject;
1516
use Hyperf\Di\Definition\PropertyHandlerManager;
1617
use Hyperf\Di\Exception\NotFoundException;
1718
use Hyperf\Di\ReflectionManager;
18-
use Hyperf\Utils\ApplicationContext;
1919
use Throwable;
2020

2121
class RegisterInjectPropertyHandler

src/LazyLoader/LazyProxyTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
namespace Hyperf\Di\LazyLoader;
1313

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

1616
trait LazyProxyTrait
1717
{

tests/Annotation/ScannerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
*/
1212
namespace HyperfTest\Di\Annotation;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Contract\ContainerInterface;
1516
use Hyperf\Di\Annotation\AnnotationReader;
1617
use Hyperf\Di\Annotation\ScanConfig;
1718
use Hyperf\Di\Annotation\Scanner;
1819
use Hyperf\Di\ReflectionManager;
1920
use Hyperf\Di\ScanHandler\NullScanHandler;
20-
use Hyperf\Utils\ApplicationContext;
2121
use Hyperf\Utils\Composer;
2222
use Hyperf\Utils\Filesystem\Filesystem;
2323
use HyperfTest\Di\Stub\AnnotationCollector;

tests/InjectTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace HyperfTest\Di;
1313

1414
use Exception;
15+
use Hyperf\Context\ApplicationContext;
1516
use Hyperf\Contract\ContainerInterface;
1617
use Hyperf\Di\Annotation\AnnotationReader;
1718
use Hyperf\Di\Annotation\Inject;
@@ -21,7 +22,6 @@
2122
use Hyperf\Di\Exception\AnnotationException;
2223
use Hyperf\Di\ReflectionManager;
2324
use Hyperf\Di\ScanHandler\NullScanHandler;
24-
use Hyperf\Utils\ApplicationContext;
2525
use HyperfTest\Di\ExceptionStub\DemoInjectException;
2626
use HyperfTest\Di\Stub\AnnotationCollector;
2727
use HyperfTest\Di\Stub\AspectCollector;

tests/LazyProxyTraitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
*/
1212
namespace HyperfTest\Di;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Di\Container;
1516
use Hyperf\Di\LazyLoader\LazyProxyTrait;
16-
use Hyperf\Utils\ApplicationContext;
1717
use HyperfTest\Di\Stub\LazyLoad\BarLazyLoad;
1818
use HyperfTest\Di\Stub\LazyLoad\FooLazyLoad;
1919
use HyperfTest\Di\Stub\LazyProxy;

tests/MakeTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
*/
1212
namespace HyperfTest\Di;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Di\Container;
1516
use Hyperf\Di\Definition\DefinitionSource;
16-
use Hyperf\Utils\ApplicationContext;
1717
use HyperfTest\Di\Stub\Bar;
1818
use HyperfTest\Di\Stub\Demo;
1919
use HyperfTest\Di\Stub\Foo;

tests/ProxyTraitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
*/
1212
namespace HyperfTest\Di;
1313

14+
use Hyperf\Context\ApplicationContext;
1415
use Hyperf\Di\Annotation\AnnotationCollector;
1516
use Hyperf\Di\Annotation\AspectCollector;
16-
use Hyperf\Utils\ApplicationContext;
1717
use HyperfTest\Di\Stub\Aspect\GetNameAspect;
1818
use HyperfTest\Di\Stub\Aspect\IncrAspect;
1919
use HyperfTest\Di\Stub\Aspect\IncrAspectAnnotation;

0 commit comments

Comments
 (0)