Skip to content

Commit

Permalink
changed Command::search: added passing send options
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 26, 2017
1 parent 5cb9c71 commit ea06ace
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ public function setRequest(RequestInterface $request)
/**
* Sends a request to retrieve data.
* In API this could be get, search or list request.
* @param array $options send options
* @throws ResponseErrorException
* @return mixed response data
*/
public function search()
public function search($options = [])
{
$this->request->getQuery()->addAction('search');

return $this->send();
return $this->send($options);
}

/**
Expand Down

0 comments on commit ea06ace

Please sign in to comment.