改名
This commit is contained in:
@@ -16,7 +16,6 @@ use ReflectionException;
|
|||||||
use ReflectionMethod;
|
use ReflectionMethod;
|
||||||
use ReflectionProperty;
|
use ReflectionProperty;
|
||||||
use Snowflake\Abstracts\BaseObject;
|
use Snowflake\Abstracts\BaseObject;
|
||||||
use Snowflake\Core\Json;
|
|
||||||
use Snowflake\Exception\NotFindClassException;
|
use Snowflake\Exception\NotFindClassException;
|
||||||
use Snowflake\Snowflake;
|
use Snowflake\Snowflake;
|
||||||
|
|
||||||
@@ -87,6 +86,9 @@ class Container extends BaseObject
|
|||||||
} else {
|
} else {
|
||||||
throw new NotFindClassException($class);
|
throw new NotFindClassException($class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Snowflake::configure($object, $config);
|
||||||
|
|
||||||
return $this->_singletons[$class] = $object;
|
return $this->_singletons[$class] = $object;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,7 +111,7 @@ class Container extends BaseObject
|
|||||||
$_className = $definition['class'];
|
$_className = $definition['class'];
|
||||||
unset($definition['class']);
|
unset($definition['class']);
|
||||||
|
|
||||||
$config = array_merge($definition, $config);
|
// $config = array_merge($definition, $config);
|
||||||
$definition = $this->mergeParam($class, $constrict);
|
$definition = $this->mergeParam($class, $constrict);
|
||||||
|
|
||||||
if ($_className === $class) {
|
if ($_className === $class) {
|
||||||
|
|||||||
Reference in New Issue
Block a user