mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-04 00:54:08 +02:00
Add interfaces for File and Directory wrappers
This commit is contained in:
parent
37ebfdf0b1
commit
b876cef7f2
5 changed files with 124 additions and 3 deletions
|
|
@ -62,7 +62,7 @@ class CallbackWrapper extends Wrapper {
|
|||
return $wrapped;
|
||||
}
|
||||
|
||||
public function stream_open() {
|
||||
public function stream_open($path, $mode, $options, &$opened_path) {
|
||||
$context = $this->loadContext('callback');
|
||||
|
||||
if (isset($context['read']) and is_callable($context['read'])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue