Skip to content

Commit

Permalink
flysytem patch added (#146)
Browse files Browse the repository at this point in the history
* flysytem patch added

* got the rght patch this time

* new patch name

* fixed composer
  • Loading branch information
ajstanley authored May 1, 2024
1 parent 3773716 commit 3a94b5a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
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

0 comments on commit 3a94b5a

Please sign in to comment.