@@ -49,20 +49,20 @@ protected function registerBackupCleaner()
49
49
{
50
50
$ this ->app ->bindShared ('backup.cleaner ' , function ($ app ) {
51
51
$ storage = $ app ['config ' ]['backup-manager::storage ' ];
52
- $ destination = $ app ['config ' ]->get ('backup.destination ' );
52
+ // $destination = $app['config']->get('backup.destination');
53
53
54
- if ($ destination === 's3 ' ) {
55
- $ config = $ storage ['s3 ' ];
56
-
57
- $ client = S3Client::factory ([
58
- 'key ' => $ config ['key ' ],
59
- 'secret ' => $ config ['secret ' ],
60
- 'region ' => $ config ['region ' ],
61
- ]);
62
- $ adapter = new AwsS3 ($ client , $ config ['bucket ' ]);
63
- } else {
54
+ // if ($destination === 's3') {
55
+ // $config = $storage['s3'];
56
+ //
57
+ // $client = S3Client::factory([
58
+ // 'key' => $config['key'],
59
+ // 'secret' => $config['secret'],
60
+ // 'region' => $config['region'],
61
+ // ]);
62
+ // $adapter = new AwsS3($client, $config['bucket']);
63
+ // } else {
64
64
$ adapter = new Local ($ storage ['local ' ]['root ' ]);
65
- }
65
+ // }
66
66
67
67
return new BackupCleaner (new Filesystem ($ adapter ));
68
68
});
0 commit comments