/home/techb158/immovalet.com/platform/plugins/backup/src/Commands
Edit: /home/techb158/immovalet.com/platform/plugins/backup/src/Commands/BackupListCommand.php (1324B)
backup = $backup;
}
/**
* Execute the console command.
* @throws Exception
*/
public function handle()
{
try {
$backups = get_file_data($this->backup->getBackupPath('backup.json'));
foreach ($backups as $key => &$backup) {
$backup['key'] = $key;
}
$header = [
'Name',
'Description',
'Date',
'Folder',
];
$this->table($header, $backups);
} catch (Exception $exception) {
$this->error($exception->getMessage());
}
return 0;
}
}