mirror of
https://github.com/filegator/filegator.git
synced 2025-08-12 10:16:39 +02:00
Website generation with Couscous
This commit is contained in:
@@ -200,6 +200,29 @@
|
||||
},
|
||||
],
|
||||
],
|
||||
</code></pre>
|
||||
<h2 id="amazon-s3-adapter-v3">Amazon S3 Adapter (v3)</h2>
|
||||
<p>You must require additional library <code>composer require league/flysystem-aws-s3-v3</code></p>
|
||||
<p>See official <a href="https://flysystem.thephpleague.com/docs/adapter/aws-s3/">documentation</a></p>
|
||||
<pre><code> 'Filegator\Services\Storage\Filesystem' => [
|
||||
'handler' => '\Filegator\Services\Storage\Filesystem',
|
||||
'config' => [
|
||||
'separator' => '/',
|
||||
'config' => [],
|
||||
'adapter' => function () {
|
||||
$client = new \Aws\S3\S3Client([
|
||||
'credentials' => [
|
||||
'key' => '123456',
|
||||
'secret' => 'secret123456',
|
||||
],
|
||||
'region' => 'us-east-1',
|
||||
'version' => 'latest',
|
||||
]);
|
||||
|
||||
return new \League\Flysystem\AwsS3v3\AwsS3Adapter($client, 'my-bucket-name');
|
||||
},
|
||||
],
|
||||
],
|
||||
</code></pre>
|
||||
</section>
|
||||
|
||||
|
Reference in New Issue
Block a user