改名
This commit is contained in:
@@ -12,6 +12,7 @@ namespace Snowflake\Abstracts;
|
|||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
use JetBrains\PhpStorm\Pure;
|
use JetBrains\PhpStorm\Pure;
|
||||||
|
use Snowflake\Application;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
|
|
||||||
@@ -35,9 +36,8 @@ class BaseObject implements Configure
|
|||||||
if (!empty($config) && is_array($config)) {
|
if (!empty($config) && is_array($config)) {
|
||||||
Snowflake::configure($this, $config);
|
Snowflake::configure($this, $config);
|
||||||
}
|
}
|
||||||
|
|
||||||
$app = Snowflake::app();
|
$app = Snowflake::app();
|
||||||
if ($app != null && $app->has('attributes')) {
|
if ($app instanceof Application && $app->has('attributes')) {
|
||||||
annotation()->injectProperty($this);
|
annotation()->injectProperty($this);
|
||||||
}
|
}
|
||||||
$this->initialization();
|
$this->initialization();
|
||||||
|
|||||||
Reference in New Issue
Block a user