Skip to content

Commit

Permalink
Do not break BC
Browse files Browse the repository at this point in the history
keep request() method as it was.
  • Loading branch information
koriym committed Mar 22, 2024
1 parent 9466722 commit 04a9614
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/HttpResourceObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ public function __toString(): string
public function _invokeRequest(InvokerInterface $invoker, AbstractRequest $request): ResourceObject
{
unset($invoker);

return $this->request($request);
}

public function request(AbstractRequest $request): self
{
$uri = $request->resourceObject->uri;
$method = strtoupper($uri->method);
$options = $method === 'GET' ? ['query' => $uri->query] : ['body' => $uri->query];
Expand Down

0 comments on commit 04a9614

Please sign in to comment.