From 2ef5637bc5dcac0faff96aaca37725879f8b897a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 29 Mar 2021 17:06:38 +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 --- System/Abstracts/BaseObject.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/System/Abstracts/BaseObject.php b/System/Abstracts/BaseObject.php index 05ae15e7..11f98c61 100644 --- a/System/Abstracts/BaseObject.php +++ b/System/Abstracts/BaseObject.php @@ -14,14 +14,12 @@ use Exception; use JetBrains\PhpStorm\Pure; use Snowflake\Snowflake; use Swoole\Coroutine; -use function Amp\any; /** * Class BaseObject * @method defer() * @package Snowflake\Snowflake\Base * @method afterInit - * @method initialization */ class BaseObject implements Configure { @@ -37,14 +35,14 @@ class BaseObject implements Configure if (!empty($config) && is_array($config)) { Snowflake::configure($this, $config); } - $this->init(); if (Snowflake::app()->has('attributes')) { annotation()->injectProperty($this); } + $this->initialization(); } - public function init() + public function initialization() { }