| @@ 130-138 (lines=9) @@ | ||
| 127 | * @param \phpbu\App\Backup\Target $target |
|
| 128 | * @param \phpbu\App\Result $result |
|
| 129 | */ |
|
| 130 | public function cleanup(Target $target, Result $result) |
|
| 131 | { |
|
| 132 | if (!$this->cleaner) { |
|
| 133 | return; |
|
| 134 | } |
|
| 135 | ||
| 136 | $collector = new \phpbu\App\Backup\Collector\Dropbox($target, $this->client, $this->path); |
|
| 137 | $this->cleaner->cleanup($target, $collector, $result); |
|
| 138 | } |
|
| 139 | ||
| 140 | /** |
|
| 141 | * Create Dropbox api client |
|
| @@ 207-215 (lines=9) @@ | ||
| 204 | * @param \phpbu\App\Backup\Target $target |
|
| 205 | * @param \phpbu\App\Result $result |
|
| 206 | */ |
|
| 207 | public function cleanup(Target $target, Result $result) |
|
| 208 | { |
|
| 209 | if (!$this->cleaner) { |
|
| 210 | return; |
|
| 211 | } |
|
| 212 | ||
| 213 | $collector = new \phpbu\App\Backup\Collector\OpenStack($target, $this->container, $this->path); |
|
| 214 | $this->cleaner->cleanup($target, $collector, $result); |
|
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * @param ObjectStoreService $service |
|