-
Notifications
You must be signed in to change notification settings - Fork 22
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
Allow overriding all Guzzle configuration settings #27
Conversation
|
||
$this->assertNull( $client->getConfig('middleware') ); | ||
|
||
$request = $this->getMockBuilder( 'Psr\Http\Message\RequestInterface' )->getMock(); |
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.
You can use RequestInterface:class
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.
Done.
59eb60c
to
d11b623
Compare
use Psr\Http\Message\RequestInterface; | ||
|
||
/** | ||
* @author Addshore |
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.
Am I the author of this class? ;)
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.
You are the one that will be blamed for bugs now ;)
/** | ||
* @author Addshore | ||
* | ||
* @todo test interaction with logger |
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.
Again I think this comment was probably copied over in error, there isn't much interaction with the logger class in here to test!
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.
Fixed :-)
d11b623
to
9f3f28b
Compare
This patch makes it possible to override all Guzzle configuration settings, not just user-agent and middleware.