Files
pterodactyl-panel/app/Extensions/Filesystem/S3Filesystem.php
T

41 lines
804 B
PHP
Raw Normal View History

2022-10-14 10:59:20 -06:00
<?php
2026-10-05 18:10:18 -04:00
declare(strict_types=1);
2022-10-14 10:59:20 -06:00
namespace Pterodactyl\Extensions\Filesystem;
use Aws\S3\S3ClientInterface;
use League\Flysystem\AwsS3V3\AwsS3V3Adapter;
class S3Filesystem extends AwsS3V3Adapter
{
2026-10-05 18:10:18 -04:00
/**
* @param array<string, ApiValue10> $options
*/
2022-10-14 10:59:20 -06:00
public function __construct(
2026-10-05 18:10:18 -04:00
private readonly S3ClientInterface $client,
private readonly string $bucket,
2022-10-14 10:59:20 -06:00
string $prefix = '',
array $options = [],
) {
parent::__construct(
$client,
$bucket,
$prefix,
null,
null,
$options,
);
}
public function getClient(): S3ClientInterface
{
return $this->client;
}
public function getBucket(): string
{
return $this->bucket;
}
}