ReviewOS

also looking at this

meemalabs/flysystem-meema

fix: Fix write functionality

#16
Merged glennmichael123 wants to merge fix-upload into main
1 file +4 -4
src/MeemaAdapter.phpmodified+4-4
Changes to src/MeemaAdapter.php
@@ -29,7 +29,7 @@ class MeemaAdapter extends AbstractAdapter
2929 */
3030 public function write($path, $contents, Config $config)
3131 {
32 return $this->client->storage()->upload($path);
32 return $this->client->storage()->upload($path, $contents, $config);
3333 }
3434
3535 /**
@@ -43,7 +43,7 @@ class MeemaAdapter extends AbstractAdapter
4343 */
4444 public function writeStream($path, $resource, Config $config)
4545 {
46 return $this->client->storage()->upload($path);
46 return $this->client->storage()->upload($path, $resource, $config);
4747 }
4848
4949 /**
@@ -57,7 +57,7 @@ class MeemaAdapter extends AbstractAdapter
5757 */
5858 public function update($path, $contents, Config $config)
5959 {
60 return $this->client->storage()->upload($path);
60 return $this->client->storage()->upload($path, $contents, $config);
6161 }
6262
6363 /**
@@ -71,7 +71,7 @@ class MeemaAdapter extends AbstractAdapter
7171 */
7272 public function updateStream($path, $resource, Config $config)
7373 {
74 return $this->client->storage()->upload($path);
74 return $this->client->storage()->upload($path, $resource, $config);
7575 }
7676
7777 /**