mirror of
https://github.com/Chouchen/Shikiryu_Backup.git
synced 2026-09-24 16:03:54 +02:00
Added validators and new transport
This commit is contained in:
1 parent
091dd4cf22
commit
8426972504
9 files changed
+165
-138
No files matched your search
@@ -42,7 +42,11 @@ class Scenario {
|
||||
public function send()
|
||||
{
|
||||
try {
|
||||
$this->transport->send();
|
||||
if ($this->backup->isValid()) {
|
||||
$this->transport->send();
|
||||
} else {
|
||||
throw new \Exception("Backup configuration is invalid.");
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user