chg: [command] Generic import tool allow passing path directly
parent
0c14d30ae7
commit
35ba595a82
|
@ -133,6 +133,9 @@ class ImporterCommand extends Command
|
|||
$data = [];
|
||||
foreach ($config as $key => $fieldConfig) {
|
||||
$values = null;
|
||||
if (!is_array($fieldConfig)) {
|
||||
$fieldConfig = ['path' => $fieldConfig];
|
||||
}
|
||||
if (!empty($fieldConfig['path'])) {
|
||||
$values = Hash::extract($source, $fieldConfig['path']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue