feat: Added deleting task when ical todo delete has been sent

- feat: Added warn logger method to logger class
This commit is contained in:
Aerex
2020-06-27 00:56:44 -05:00
parent 98eb84b3b6
commit a89dd17991
6 changed files with 81 additions and 17 deletions

View File

@@ -46,4 +46,17 @@ class StorageManager {
$storage->save($calendar);
}
}
public function remove($uid) {
if (!isset($this->configs)) {
throw new \Exception('StorageManger was not initialize or configs are not defined');
}
foreach ($this->configs['storages'] as $key => $value) {
$storage = $this->storages[$key];
if (!isset($storage)){
throw new \Exception();
}
$storage->remove($uid);
}
}
}