Skip to content

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

Merged
merged 4 commits into from
Jun 8, 2017

Conversation

WyriHaximus
Copy link
Member

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

Copy link
Member

@clue clue left a 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 👍

use Psr\Http\Message\UploadedFileInterface;
use RuntimeException;

final class UploadedFile implements UploadedFileInterface
Copy link
Member

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?

Copy link
Member Author

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.

@WyriHaximus
Copy link
Member Author

@clue this is a preparation PR for upcoming PR. Will mark the class internal soon 👍

@WyriHaximus WyriHaximus merged commit 26f1025 into reactphp:master Jun 8, 2017
@clue clue modified the milestones: v0.7.1, v0.8.0 Jun 17, 2017
@clue
Copy link
Member

clue commented Jun 17, 2017

Updated milestone because it's been released as part of v0.7.1 (as discussed in #201) :shipit:

@WyriHaximus WyriHaximus mentioned this pull request Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants