改名
This commit is contained in:
@@ -146,6 +146,9 @@ class Container extends BaseObject
|
|||||||
|
|
||||||
unset($dependencies['class']);
|
unset($dependencies['class']);
|
||||||
|
|
||||||
|
var_dump($reflect->getName() . '::' . Json::encode($dependencies));
|
||||||
|
|
||||||
|
|
||||||
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')) {
|
||||||
|
|||||||
@@ -306,7 +306,6 @@ class Snowflake
|
|||||||
*/
|
*/
|
||||||
public static function configure($object, $config): mixed
|
public static function configure($object, $config): mixed
|
||||||
{
|
{
|
||||||
var_dump($config);
|
|
||||||
foreach ($config as $key => $value) {
|
foreach ($config as $key => $value) {
|
||||||
if (!property_exists($object, $key)) {
|
if (!property_exists($object, $key)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user