Browse Source

update 0.0.3

Hugh Harlequin 2 years ago
parent
commit
49478566fb
3 changed files with 3 additions and 2 deletions
  1. 1 1
      composer.json
  2. 1 0
      src/Builder.php
  3. 1 1
      src/MultiCurlServiceProvider.php

+ 1 - 1
composer.json

@@ -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": {

+ 1 - 0
src/Builder.php

@@ -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 {

+ 1 - 1
src/MultiCurlServiceProvider.php

@@ -16,7 +16,7 @@ class MultiCurlServiceProvider extends ServiceProvider {
      */
     public function register()
     {
-        $this->app->singleton('Curl', function () {
+        $this->app->singleton('MultiCurl', function () {
                 return new MultiCurlService();
             }
         );