Limpieza de objetos externos

This commit is contained in:
2022-08-08 22:36:04 -04:00
parent a9968dec58
commit cdb4b382b7
57 changed files with 1210 additions and 339 deletions

View File

@ -14,15 +14,6 @@ return [
'name' => $_ENV['MYSQL_DATABASE']
]
];
function toObj($arr) {
$obj = (object) $arr;
foreach ($arr as $k => $v) {
if (is_array($v)) {
$obj->{$k} = toObj($v);
}
}
return $obj;
}
return (object) ['databases' => toObj($arr), 'short_names' => true];
return (object) ['databases' => \ProVM\Implement\Collection::fromArray($arr), 'short_names' => true];
}
];