diff options
author | devian_peoplelogy <devianleong@gmail.com> | 2022-09-28 16:16:31 +0800 |
---|---|---|
committer | devian_peoplelogy <devianleong@gmail.com> | 2022-09-28 16:16:31 +0800 |
commit | 3f6b6678ca405142bf35279abda8b83966bfb14e (patch) | |
tree | 07643127aee930d1e9a0bae5e73dca121f3abe68 | |
parent | f12d58455f0df4db329d941a5a7f318a74995da3 (diff) |
Update
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | composer.json | 1 | ||||
-rw-r--r-- | src/Manager/ScormDisk.php | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -20,12 +20,12 @@ Highlight of this package: ## Step 1: -Install from composer (For flysystem v2) +Install from composer (For flysystem v1) ```sh composer require devianl2/laravel-scorm:"^3.0" ``` -Install from composer (For flysystem v3) +Install from composer (For flysystem v2/v3) ```sh composer require devianl2/laravel-scorm ``` diff --git a/composer.json b/composer.json index 7e69279..dee8751 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,7 @@ "require": { "php": "^7.4 || ^8.0", "doctrine/common": "^3.1", + "league/flysystem": "^2.0 || ^3.0", "nesbot/carbon": "^2.42", "ext-zip": "*", "ext-dom": "*" diff --git a/src/Manager/ScormDisk.php b/src/Manager/ScormDisk.php index a280142..d4a6120 100644 --- a/src/Manager/ScormDisk.php +++ b/src/Manager/ScormDisk.php @@ -33,7 +33,7 @@ class ScormDisk $disk->createDir($destination); continue; } - $disk->putStream($destination, $unzipper->getStream($zipEntryName)); + $disk->writeStream($destination, $unzipper->getStream($zipEntryName)); } return true; } |