Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Extensions/Filesystem/S3Filesystem.php
10266 views
1
<?php
2
3
namespace Pterodactyl\Extensions\Filesystem;
4
5
use Aws\S3\S3ClientInterface;
6
use League\Flysystem\AwsS3V3\AwsS3V3Adapter;
7
8
class S3Filesystem extends AwsS3V3Adapter
9
{
10
public function __construct(
11
private S3ClientInterface $client,
12
private string $bucket,
13
string $prefix = '',
14
array $options = [],
15
) {
16
parent::__construct(
17
$client,
18
$bucket,
19
$prefix,
20
null,
21
null,
22
$options,
23
);
24
}
25
26
public function getClient(): S3ClientInterface
27
{
28
return $this->client;
29
}
30
31
public function getBucket(): string
32
{
33
return $this->bucket;
34
}
35
}
36
37