-
-
Notifications
You must be signed in to change notification settings - Fork 63
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 UriFactory::createFromSapi()
#123
Conversation
This method will provide a public API to create Uri instances from SERVER context. This helps libraries that depend on diactoros and have their own ServerRequest or Uri implementations use the logic in diactoros more efficiently. Signed-off-by: Mark Story <[email protected]>
/cc @froschdesign for getting guidance on the docs section |
BTW, overall direction of this patch is good 👍 |
Signed-off-by: Mark Story <[email protected]>
I've resolved all but one of psalm's complaints. The remaining MixedArgumentTypeCoercion was added to the baseline file beside the existing one in the same method. |
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.
LGTM 👍
Thanks @markstory!
Went through it again: I know most code is just transposed as-is, so we're good here. Releasing 🚢 |
UriFactory::createFromSapi()
Description
This method will provide a public API to create Uri instances from SERVER context. This helps libraries that depend on diactoros and have their own ServerRequest or Uri implementations use the logic in diactoros more efficiently.
I wanted to get a rough draft of this up for feedback. If it is headed in the right direction, I have a few TODOs remaining:
factories
section, but would appreciate any direction here.If there are other requirements that need to be met let me know 😄
Refs #122