66use Illuminate \Http \Request ;
77use Pterodactyl \Models \Backup ;
88use Illuminate \Http \JsonResponse ;
9- use Illuminate \Foundation \Application ;
109use League \Flysystem \AwsS3v3 \AwsS3Adapter ;
11- use Illuminate \Contracts \Config \Repository ;
1210use Pterodactyl \Http \Controllers \Controller ;
1311use Pterodactyl \Extensions \Backups \BackupManager ;
1412use Pterodactyl \Repositories \Eloquent \BackupRepository ;
@@ -18,11 +16,6 @@ class BackupRemoteUploadController extends Controller
1816{
1917 const PART_SIZE = 5 * 1024 * 1024 * 1024 ;
2018
21- /**
22- * @var \Illuminate\Contracts\Config\Repository
23- */
24- protected $ config ;
25-
2619 /**
2720 * @var \Pterodactyl\Repositories\Eloquent\BackupRepository
2821 */
@@ -36,13 +29,11 @@ class BackupRemoteUploadController extends Controller
3629 /**
3730 * BackupRemoteUploadController constructor.
3831 *
39- * @param \Illuminate\Foundation\Application $app
4032 * @param \Pterodactyl\Repositories\Eloquent\BackupRepository $repository
4133 * @param \Pterodactyl\Extensions\Backups\BackupManager $backupManager
4234 */
43- public function __construct (Application $ app , BackupRepository $ repository , BackupManager $ backupManager )
35+ public function __construct (BackupRepository $ repository , BackupManager $ backupManager )
4436 {
45- $ this ->config = $ app ->make (Repository::class);
4637 $ this ->repository = $ repository ;
4738 $ this ->backupManager = $ backupManager ;
4839 }
@@ -86,7 +77,7 @@ public function __invoke(Request $request, string $backup)
8677
8778 // Get the S3 client
8879 $ client = $ adapter ->getClient ();
89- $ expires = CarbonImmutable::now ()->addMinutes ($ this -> config -> get ('backups.presigned_url_lifespan ' , 60 ));
80+ $ expires = CarbonImmutable::now ()->addMinutes (config ('backups.presigned_url_lifespan ' , 60 ));
9081
9182 // Params for generating the presigned urls
9283 $ params = [
0 commit comments