@@ -15,7 +15,7 @@
"repositories": [
{
"type": "vcs",
- "url": "https://git.hugh2113.com/hugh/curl.git"
+ "url": "https://git.hugh2113.com/hugh/multi-curl.git"
}
],
"require": {
@@ -12,6 +12,7 @@ class Builder {
public function add(CurlBuilder $curl) {
curl_multi_add_handle($this->mCurl, $curl);
$this->curls[] = $curl;
+ return $this;
public function go() {
do {
@@ -16,7 +16,7 @@ class MultiCurlServiceProvider extends ServiceProvider {
*/
public function register()
- $this->app->singleton('Curl', function () {
+ $this->app->singleton('MultiCurl', function () {
return new MultiCurlService();
);