改名
This commit is contained in:
@@ -14,14 +14,12 @@ use Exception;
|
|||||||
use JetBrains\PhpStorm\Pure;
|
use JetBrains\PhpStorm\Pure;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
use function Amp\any;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class BaseObject
|
* Class BaseObject
|
||||||
* @method defer()
|
* @method defer()
|
||||||
* @package Snowflake\Snowflake\Base
|
* @package Snowflake\Snowflake\Base
|
||||||
* @method afterInit
|
* @method afterInit
|
||||||
* @method initialization
|
|
||||||
*/
|
*/
|
||||||
class BaseObject implements Configure
|
class BaseObject implements Configure
|
||||||
{
|
{
|
||||||
@@ -37,14 +35,14 @@ class BaseObject implements Configure
|
|||||||
if (!empty($config) && is_array($config)) {
|
if (!empty($config) && is_array($config)) {
|
||||||
Snowflake::configure($this, $config);
|
Snowflake::configure($this, $config);
|
||||||
}
|
}
|
||||||
$this->init();
|
|
||||||
if (Snowflake::app()->has('attributes')) {
|
if (Snowflake::app()->has('attributes')) {
|
||||||
annotation()->injectProperty($this);
|
annotation()->injectProperty($this);
|
||||||
}
|
}
|
||||||
|
$this->initialization();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function init()
|
public function initialization()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user