. */ namespace SP\Services\Import; use SP\Core\Events\Event; use SP\Core\Events\EventMessage; defined('APP_ROOT') || die(); /** * Class CsvImport para importar cuentas desde archivos CSV * * @package SP */ final class CsvImport extends CsvImportBase implements ImportInterface { /** * Iniciar la importación desde CSV * * @return $this|ImportInterface * @throws ImportException * @throws \SP\Storage\File\FileException */ public function doImport() { $this->eventDispatcher->notifyEvent('run.import.csv', new Event($this, EventMessage::factory() ->addDescription(sprintf(__('Formato detectado: %s'), 'CSV'))) ); $this->processAccounts(); return $this; } }