改名
This commit is contained in:
@@ -33,8 +33,6 @@ class BaseObject implements Configure
|
|||||||
public function __construct($config = [])
|
public function __construct($config = [])
|
||||||
{
|
{
|
||||||
if (!empty($config) && is_array($config)) {
|
if (!empty($config) && is_array($config)) {
|
||||||
var_dump(static::class . '::' . Json::encode($config));
|
|
||||||
|
|
||||||
Snowflake::configure($this, $config);
|
Snowflake::configure($this, $config);
|
||||||
}
|
}
|
||||||
$this->init();
|
$this->init();
|
||||||
|
|||||||
@@ -147,10 +147,6 @@ class Container extends BaseObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
unset($dependencies['class']);
|
unset($dependencies['class']);
|
||||||
|
|
||||||
var_dump($reflect->getName() . '::' . Json::encode($config));
|
|
||||||
|
|
||||||
|
|
||||||
if (empty($config) || !is_array($config)) {
|
if (empty($config) || !is_array($config)) {
|
||||||
$object = $this->newInstance($reflect, $dependencies);
|
$object = $this->newInstance($reflect, $dependencies);
|
||||||
} else if (!empty($dependencies) && $reflect->implementsInterface('Snowflake\Abstracts\Configure')) {
|
} else if (!empty($dependencies) && $reflect->implementsInterface('Snowflake\Abstracts\Configure')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user