summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'init.php')
-rw-r--r--init.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/init.php b/init.php
index 10946c9..232a098 100644
--- a/init.php
+++ b/init.php
@@ -13,8 +13,6 @@ class Cache_S3 extends Plugin implements Cache_Adapter {
const CACHE_S3_ENDPOINT = "CACHE_S3_ENDPOINT";
const CACHE_S3_BUCKET = "CACHE_S3_BUCKET";
const CACHE_S3_REGION = "CACHE_S3_REGION";
- const CACHE_S3_ACCESS_KEY = "CACHE_S3_ACCESS_KEY";
- const CACHE_S3_SECRET_KEY = "CACHE_S3_SECRET_KEY";
public function remove(string $filename): bool {
return unlink($this->get_full_path($filename));
@@ -31,8 +29,6 @@ class Cache_S3 extends Plugin implements Cache_Adapter {
Config::add(self::CACHE_S3_ENDPOINT, "", Config::T_STRING);
Config::add(self::CACHE_S3_BUCKET, "", Config::T_STRING);
Config::add(self::CACHE_S3_REGION, "", Config::T_STRING);
- Config::add(self::CACHE_S3_ACCESS_KEY, "", Config::T_STRING);
- Config::add(self::CACHE_S3_SECRET_KEY, "", Config::T_STRING);
/** @phpstan-ignore-next-line */
$this->s3 = new Aws\S3\S3Client([
@@ -40,10 +36,6 @@ class Cache_S3 extends Plugin implements Cache_Adapter {
'region' => Config::get(self::CACHE_S3_REGION),
'endpoint' => Config::get(self::CACHE_S3_ENDPOINT),
'use_path_style_endpoint' => true,
- 'credentials' => [
- 'key' => Config::get(self::CACHE_S3_ACCESS_KEY),
- 'secret' => Config::get(self::CACHE_S3_SECRET_KEY)
- ],
]);
/** @phpstan-ignore-next-line */