mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Rename Hyperf to ApplicationContext
This commit is contained in:
parent
3d4971f769
commit
c43225d766
@ -8,7 +8,7 @@ use Closure;
|
||||
use Doctrine\Instantiator\Instantiator;
|
||||
use Hyperf\Di\Annotation\AspectCollector;
|
||||
use Hyperf\Di\ReflectionManager;
|
||||
use Hyperf\Framework\Hyperf;
|
||||
use Hyperf\Framework\ApplicationContext;
|
||||
|
||||
trait ProxyTrait
|
||||
{
|
||||
@ -52,7 +52,7 @@ trait ProxyTrait
|
||||
{
|
||||
$arround = AspectCollector::get('arround');
|
||||
if ($aspects = self::isMatchClassName($arround['classes'] ?? [], $proceedingJoinPoint->className, $proceedingJoinPoint->method)) {
|
||||
$pipeline = new Pipeline(Hyperf::getContainer());
|
||||
$pipeline = new Pipeline(ApplicationContext::getContainer());
|
||||
return $pipeline->via('process')->through($aspects)->send($proceedingJoinPoint)->then(function (ProceedingJoinPoint $proceedingJoinPoint) {
|
||||
return $proceedingJoinPoint->processOriginalMethod();
|
||||
});
|
||||
|
@ -5,7 +5,7 @@ namespace Hyperf\Framework;
|
||||
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
class Hyperf
|
||||
class ApplicationContext
|
||||
{
|
||||
|
||||
/**
|
Loading…
Reference in New Issue
Block a user