Skip to content

Commit

Permalink
Replace various string-references to config options with consts
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoordsij committed Nov 18, 2023
1 parent 8e038c7 commit 9808919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AwsS3V3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9808919

Please sign in to comment.