Skip to content
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 an options argument to the getResponse provider method #967

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -698,12 +698,14 @@ protected function createRequest($method, $url, $token, array $options)
* WARNING: This method does not attempt to catch exceptions caused by HTTP
* errors! It is recommended to wrap this method in a try/catch block.
*
* @param RequestInterface $request
* @param RequestInterface $request
* @param array $options Request options to apply to the given
*
* @return ResponseInterface
*/
public function getResponse(RequestInterface $request)
public function getResponse(RequestInterface $request, array $options = [])
{
return $this->getHttpClient()->send($request);
return $this->getHttpClient()->send($request, $options);
}

/**
Expand Down