Skip to content

Commit 3f6b667

Browse files
committed
Update
1 parent f12d584 commit 3f6b667

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ Highlight of this package:
2020

2121

2222
## Step 1:
23-
Install from composer (For flysystem v2)
23+
Install from composer (For flysystem v1)
2424
```sh
2525
composer require devianl2/laravel-scorm:"^3.0"
2626
```
2727

28-
Install from composer (For flysystem v3)
28+
Install from composer (For flysystem v2/v3)
2929
```sh
3030
composer require devianl2/laravel-scorm
3131
```

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"require": {
1313
"php": "^7.4 || ^8.0",
1414
"doctrine/common": "^3.1",
15+
"league/flysystem": "^2.0 || ^3.0",
1516
"nesbot/carbon": "^2.42",
1617
"ext-zip": "*",
1718
"ext-dom": "*"

src/Manager/ScormDisk.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function unzipper($file, $target_dir)
3333
$disk->createDir($destination);
3434
continue;
3535
}
36-
$disk->putStream($destination, $unzipper->getStream($zipEntryName));
36+
$disk->writeStream($destination, $unzipper->getStream($zipEntryName));
3737
}
3838
return true;
3939
}

0 commit comments

Comments
 (0)