改名
This commit is contained in:
@@ -125,7 +125,7 @@ class Container extends BaseObject
|
|||||||
if (!$reflect->isInstantiable()) {
|
if (!$reflect->isInstantiable()) {
|
||||||
throw new Exception($reflect->getName() . ' con\'t instantiable');
|
throw new Exception($reflect->getName() . ' con\'t instantiable');
|
||||||
}
|
}
|
||||||
var_dump($dependencies);
|
var_dump($class, $dependencies);
|
||||||
if (empty($config)) {
|
if (empty($config)) {
|
||||||
return $reflect->newInstanceArgs($dependencies ?? []);
|
return $reflect->newInstanceArgs($dependencies ?? []);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -203,9 +203,6 @@ class Snowflake
|
|||||||
public static function configure($object, $config): mixed
|
public static function configure($object, $config): mixed
|
||||||
{
|
{
|
||||||
foreach ($config as $key => $value) {
|
foreach ($config as $key => $value) {
|
||||||
if (!is_string($key)) {
|
|
||||||
var_dump(get_class($object), $config);
|
|
||||||
}
|
|
||||||
if (!property_exists($object, $key)) {
|
if (!property_exists($object, $key)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user