Added validators and new transport

This commit is contained in:
Shikiryu committed 2015-07-12 20:34:54 +02:00
1 parent 091dd4cf22
commit 8426972504
9 files changed
+165 -138

No files matched your search

+5 -1
View File
@@ -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;
}