Skip to content
Snippets Groups Projects
Commit 8a2115d9 authored by Demian Katz's avatar Demian Katz
Browse files

Made $url parameter to createClient optional (this will generate a proxified object by default).

parent 64991de1
Branches
Tags
No related merge requests found
......@@ -158,11 +158,13 @@ class HttpService implements HttpServiceInterface
*
* @return \Zend\Http\Client
*/
public function createClient ($url, $method = \Zend\Http\Request::METHOD_GET, $timeout = null)
public function createClient ($url = null, $method = \Zend\Http\Request::METHOD_GET, $timeout = null)
{
$client = new \Zend\Http\Client();
$client->setMethod($method);
$client->setUri($url);
if (null !== $url) {
$client->setUri($url);
}
if ($timeout) {
$client->setOptions(array('timeout' => $timeout));
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment