also looking at this
Master
#10
3 files
+1400
-487
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -10,21 +10,22 @@ use League\Flysystem\Config; | ||
| 10 | 10 | |
| 11 | 11 | class MeemaAdapter extends AbstractAdapter |
| 12 | 12 | { |
| 13 | /** | |
| 13 | /** | |
| 14 | 14 | * @var \Meema\Flysystem\Client |
| 15 | */ | |
| 15 | */ | |
| 16 | 16 | protected $client; |
| 17 | 17 | |
| 18 | 18 | public function __construct() |
| 19 | 19 | { |
| 20 | 20 | $this->client = new Client('pk_live|2|1|kDLnNyPvkdlA8sXJky7SJePO1IdabMzncYxypyC2'); |
| 21 | 21 | } |
| 22 | ||
| 22 | 23 | /** |
| 23 | 24 | * Write a new file. |
| 24 | 25 | * |
| 25 | 26 | * @param string $path |
| 26 | 27 | * @param string $contents |
| 27 | * @param Config $config Config object | |
| 28 | * @param Config $config Config object | |
| 28 | 29 | * |
| 29 | 30 | * @return false|array false on failure file meta data on success |
| 30 | 31 | */ |
| @@ -181,7 +182,7 @@ class MeemaAdapter extends AbstractAdapter formatting only | ||
| 181 | 182 | * List contents of a directory. |
| 182 | 183 | * |
| 183 | 184 | * @param string $directory |
| 184 | * @param bool $recursive | |
| 185 | * @param bool $recursive | |
| 185 | 186 | * |
| 186 | 187 | * @return array |
| 187 | 188 | */ |
| @@ -298,9 +299,9 @@ class MeemaAdapter extends AbstractAdapter formatting only | ||
| 298 | 299 | /** |
| 299 | 300 | * Upload the file stream to s3. |
| 300 | 301 | * |
| 301 | * @param string $signedUrl | |
| 302 | * @param array $headers | |
| 303 | * @param string $fileName | |
| 302 | * @param string $signedUrl | |
| 303 | * @param array $headers | |
| 304 | * @param string $fileName | |
| 304 | 305 | * @param GuzzleHttp\Psr7 $stream |
| 305 | 306 | * |
| 306 | 307 | * @return void |
| @@ -315,7 +316,7 @@ class MeemaAdapter extends AbstractAdapter formatting only | ||
| 315 | 316 | new Psr7\MultipartStream( |
| 316 | 317 | [ |
| 317 | 318 | [ |
| 318 | 'name' => $fileName, | |
| 319 | 'name' => $fileName, | |
| 319 | 320 | 'contents' => $stream, |
| 320 | 321 | ], |
| 321 | 322 | ] |
| @@ -324,4 +325,4 @@ class MeemaAdapter extends AbstractAdapter formatting only | ||
| 324 | 325 | |
| 325 | 326 | $client->send($request); |
| 326 | 327 | } |
| 327 | }⧵ | |
| 328 | } | |