-
-
Notifications
You must be signed in to change notification settings - Fork 160
UploadedFile implementing UploadedFileInterface #199
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
Conversation
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.
It's a bit unclear how this is going to be used, but if this is only a preparation for a follow-up PR, then I'm good with it as long as we avoid any BC breaks in the future 👍
src/UploadedFile.php
Outdated
use Psr\Http\Message\UploadedFileInterface; | ||
use RuntimeException; | ||
|
||
final class UploadedFile implements UploadedFileInterface |
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.
I don't see this class being used or documented anywhere, should this be marked @internal
?
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.
It will be used in a follow up PR. Specifically the multipart bodyparser.
@clue this is a preparation PR for upcoming PR. Will mark the class internal soon 👍 |
Updated milestone because it's been released as part of v0.7.1 (as discussed in #201) |
To get started with the body parsers we first need an object representing uploaded files. This is a simple implementation of the PSR-7 UploadedFileInterface.
Supersedes #62