From 9808919ee5d819730d9582d4e1673e8d195c38d8 Mon Sep 17 00:00:00 2001 From: Jesper Noordsij Date: Sat, 18 Nov 2023 15:00:00 +0100 Subject: [PATCH] Replace various string-references to config options with consts --- AwsS3V3Adapter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AwsS3V3Adapter.php b/AwsS3V3Adapter.php index fefa3bb..4793321 100644 --- a/AwsS3V3Adapter.php +++ b/AwsS3V3Adapter.php @@ -244,8 +244,8 @@ public function deleteDirectory(string $path): void public function createDirectory(string $path, Config $config): void { - $defaultVisibility = $config->get('directory_visibility', $this->visibility->defaultForDirectories()); - $config = $config->withDefaults(['visibility' => $defaultVisibility]); + $defaultVisibility = $config->get(Config::OPTION_DIRECTORY_VISIBILITY, $this->visibility->defaultForDirectories()); + $config = $config->withDefaults([Config::OPTION_VISIBILITY => $defaultVisibility]); $this->upload(rtrim($path, '/') . '/', '', $config); }