@@ -49,20 +49,20 @@ protected function registerBackupCleaner()
4949 {
5050 $ this ->app ->bindShared ('backup.cleaner ' , function ($ app ) {
5151 $ storage = $ app ['config ' ]['backup-manager::storage ' ];
52- $ destination = $ app ['config ' ]->get ('backup.destination ' );
52+ // $destination = $app['config']->get('backup.destination');
5353
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 {
6464 $ adapter = new Local ($ storage ['local ' ]['root ' ]);
65- }
65+ // }
6666
6767 return new BackupCleaner (new Filesystem ($ adapter ));
6868 });
0 commit comments