add FTP Upload
This commit is contained in:
@@ -87,7 +87,14 @@ class Jtl
|
||||
{
|
||||
try {
|
||||
$writer = Writer::createFromPath(getcwd().'/jtl/cds-export.csv', 'w+');
|
||||
$writer->insertAll(new \ArrayIterator($data));
|
||||
$bytes = $writer->insertAll(new \ArrayIterator($data));
|
||||
|
||||
if($bytes){
|
||||
$this->logger->info('Exported '.$bytes.' bytes');
|
||||
|
||||
$FTP = new Ftp();
|
||||
$FTP->uploadFile(getcwd().'/jtl/cds-export.csv');
|
||||
}
|
||||
|
||||
}catch (\Exception $e){
|
||||
$this->logger->error($e->getMessage());
|
||||
@@ -95,4 +102,6 @@ class Jtl
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user