Skip to content

Commit b6df189

Browse files
vibbowrobocoder
authored andcommitted
Auto init curlSerice on WebDriver Abstract.
1 parent 7862f3e commit b6df189

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/WebDriver/AbstractWebDriver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function __construct($url = 'http://localhost:4444/wd/hub', $w3c = false)
8787
$this->url = $url;
8888
$this->w3c = $w3c;
8989
$this->transientOptions = array();
90+
$this->curlService = ServiceFactory::getInstance()->getService('service.curl');
9091
}
9192

9293
/**
@@ -126,7 +127,7 @@ public function setCurlService($curlService)
126127
*/
127128
public function getCurlService()
128129
{
129-
return $this->curlService ?: ServiceFactory::getInstance()->getService('service.curl');
130+
return $this->curlService;
130131
}
131132

132133
/**

0 commit comments

Comments
 (0)