Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flysytem patch added #146

Merged
merged 4 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions assets/patches/flysystem-stream-wrapper.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 2cb6c625d6d674b51eb4bf66fae8232b30533c9d Mon Sep 17 00:00:00 2001
From: Adam Vessey <[email protected]>
Date: Fri, 13 Oct 2023 13:52:04 -0300
Subject: [PATCH] Add in the `public $context` property to the stream wrapper.

---
src/FlysystemStreamWrapper.php | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/src/FlysystemStreamWrapper.php b/src/FlysystemStreamWrapper.php
index 93a79b6..5c5a200 100644
--- a/src/FlysystemStreamWrapper.php
+++ b/src/FlysystemStreamWrapper.php
@@ -25,6 +25,13 @@ class FlysystemStreamWrapper
*/
const STREAM_URL_IGNORE_SIZE = 8;

+ /**
+ * PHP-passed stream context.
+ *
+ * @var resource|null
+ */
+ public $context;
+
/**
* The registered filesystems.
*
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,16 @@
"type:drupal-custom-theme"
]
},
"patches": {}
"patches": {
"twistor/flysystem-stream-wrapper": {
"PHP 8.2 deprecation warning": "assets/patches/flysystem-stream-wrapper.patch"
}
}
},
"scripts": {
"post-root-package-install": ["Islandora\\StarterSite::rootPackageInstall"]
"post-root-package-install": [
"Islandora\\StarterSite::rootPackageInstall"
]
},
"require-dev": {
"drupal/config_inspector": "^2.1",
Expand Down
Loading