diff --git a/Annotation/Aspect.php b/Annotation/Aspect.php index 0bbafdf9..8ec5d419 100644 --- a/Annotation/Aspect.php +++ b/Annotation/Aspect.php @@ -5,7 +5,7 @@ namespace Annotation; use Exception; -use Kiri\Aop; +use Kiri\AspectManager; use Kiri\IAspect; use Kiri\Kiri; diff --git a/System/Abstracts/BaseApplication.php b/System/Abstracts/BaseApplication.php index 5235787c..f77b9c6c 100644 --- a/System/Abstracts/BaseApplication.php +++ b/System/Abstracts/BaseApplication.php @@ -22,7 +22,7 @@ use Http\Server; use Http\Shutdown; use JetBrains\PhpStorm\Pure; use Kafka\KafkaProvider; -use Kiri\Aop; +use Kiri\AspectManager; use Kiri\Async; use Kiri\Cache\Redis; use Kiri\Di\LocalService; @@ -478,7 +478,7 @@ abstract class BaseApplication extends Component 'router' => ['class' => Router::class], 'redis' => ['class' => Redis::class], 'databases' => ['class' => Connection::class], - 'aop' => ['class' => Aop::class], + 'aop' => ['class' => AspectManager::class], 'input' => ['class' => HttpParams::class], 'header' => ['class' => HttpHeaders::class], 'jwt' => ['class' => Jwt::class], diff --git a/System/Aop.php b/System/AspectManager.php similarity index 98% rename from System/Aop.php rename to System/AspectManager.php index 4d5d0445..a1919085 100644 --- a/System/Aop.php +++ b/System/AspectManager.php @@ -15,7 +15,7 @@ defined('ASPECT_ERROR') or define('ASPECT_ERROR', 'Aspect annotation must implem * Class Aop * @package Kiri */ -class Aop extends Component +class AspectManager extends Component { diff --git a/function.php b/function.php index 3989bacd..a38b0da6 100644 --- a/function.php +++ b/function.php @@ -10,7 +10,7 @@ use Http\Context\Response as HttpResponse; use Http\Route\Router; use JetBrains\PhpStorm\Pure; use Kiri\Abstracts\Config; -use Kiri\Aop; +use Kiri\AspectManager; use Kiri\Application; use Kiri\Core\ArrayAccess; use Kiri\Error\Logger; @@ -356,7 +356,7 @@ if (!function_exists('aop')) { */ function aop(mixed $handler, array $params = []): mixed { - return Kiri::getDi()->get(Aop::class)->dispatch($handler, $params); + return Kiri::getDi()->get(AspectManager::class)->dispatch($handler, $params); } }