You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have a way of converting the RequestOptions of guzzle into a RequestInterface class. At the momemt the function that provides this kind of functionallity is applyOptions which is inside Client class and it's private.
Would you consider extracting this function somewhere else and making it public. Either to a factory class or put it inside functions.php file?
The reason I am making this request is that I need to create a factory that will accept the guzzle options and return a RequestInterface.
So I need
Class GuzzleRequestFactory{
public function createRequest($method, $uri, $options)
{
//return RequestInterface here;
}
}
The text was updated successfully, but these errors were encountered:
Yeah, a factory interface would be great. There was a similar issue here: #1455
An interesting consideration would also be if the implementation for this interface could potentially allow for customizable handling of each request option with the ability to add custom options.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 2 weeks if no further activity occurs. Thank you for your contributions.
Actual Behavior
Hello,
I would like to have a way of converting the RequestOptions of guzzle into a RequestInterface class. At the momemt the function that provides this kind of functionallity is applyOptions which is inside Client class and it's private.
Would you consider extracting this function somewhere else and making it public. Either to a factory class or put it inside functions.php file?
The reason I am making this request is that I need to create a factory that will accept the guzzle options and return a RequestInterface.
So I need
The text was updated successfully, but these errors were encountered: