FriendsOfSylius / SyliusImportExportPlugin

Sylius plugin to import / export data
MIT License
118 stars 82 forks source link

[CLI] error when format not set #206

Closed oallain closed 4 years ago

oallain commented 4 years ago

When we import file without --format pamater we got an error :

In ImporterRegistry.php line 13:

Argument 2 passed to FriendsOfSylius\SyliusImportExportPlugin\Importer\ImporterRegistry::buildServiceName() m
ust be of the type string, null given, called in /home/synbshop/public_html/sylius-toupargel/src/vendor/frien
dsofsylius/sylius-import-export-plugin/src/Command/ImportDataCommand.php on line 61

We can try to guess the format from the file like say here https://github.com/FriendsOfSylius/SyliusImportExportPlugin/blob/master/src/Command/ImportDataCommand.php#L39