From 048960c572dc61087f7d47a357ba846ecd253c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 30 Nov 2021 15:14:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.php | 2 +- kiri-engine/Abstracts/BaseApplication.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/function.php b/function.php index dc5d905f..7d28cc55 100644 --- a/function.php +++ b/function.php @@ -176,7 +176,7 @@ if (!function_exists('workerName')) { } -if (!function_exists('annotation')) { +if (!function_exists('note')) { /** diff --git a/kiri-engine/Abstracts/BaseApplication.php b/kiri-engine/Abstracts/BaseApplication.php index 15365fb0..2d5e8752 100644 --- a/kiri-engine/Abstracts/BaseApplication.php +++ b/kiri-engine/Abstracts/BaseApplication.php @@ -397,7 +397,7 @@ abstract class BaseApplication extends Component */ public function getNote(): SNote { - return $this->get('annotation'); + return $this->get('note'); } @@ -450,7 +450,7 @@ abstract class BaseApplication extends Component 'error' => ['class' => ErrorHandler::class], 'config' => ['class' => Config::class], 'logger' => ['class' => Logger::class], - 'annotation' => ['class' => SNote::class], + 'note' => ['class' => SNote::class], 'databases' => ['class' => Connection::class], 'jwt' => ['class' => Jwt::class], 'async' => ['class' => Async::class],