-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add fopen method to ISimpleFile #10122
Conversation
I would prefer having separate read and write methods instead of a generic fopen |
370fdfd
to
8100a14
Compare
@icewind1991 I moved it to two separate methods. |
* @since 14.0.0 | ||
*/ | ||
public function fopen(string $mode) { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, forgot to remove this. 🙈 Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm Github doesn't show my rebased commits, but when forcepushing everything is up to date :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, another commit --amend fixed it.
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
2efeed5
to
6da2b7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code makes sense 👍
This allows to also use the AppData for large files where using a FileDisplayResponse will fail, because it is calling getContent and trying to put the whole file in memory.
With this, apps can properly use a StreamResponse.