Added validators and new transport

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

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;
}