Rename Hyperf to ApplicationContext

This commit is contained in:
huangzhhui 2018-12-27 20:45:13 +08:00
parent 3d4971f769
commit c43225d766
2 changed files with 3 additions and 3 deletions

View File

@ -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();
});

View File

@ -5,7 +5,7 @@ namespace Hyperf\Framework;
use Psr\Container\ContainerInterface;
class Hyperf
class ApplicationContext
{
/**