This repository was archived by the owner on Jan 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Expand file tree Collapse file tree 2 files changed +1
-27
lines changed Original file line number Diff line number Diff line change 16
16
],
17
17
"require" : {
18
18
"php" : " >=5.5.0" ,
19
- "php-http/httplug" : " ^1.0@dev" ,
20
- "php-http/utils" : " ^0.1@dev" ,
19
+ "php-http/httplug" : " ^1.0" ,
21
20
"guzzlehttp/guzzle" : " ^6.0"
22
21
},
23
22
"require-dev" : {
Original file line number Diff line number Diff line change @@ -54,31 +54,6 @@ public function sendRequest(RequestInterface $request)
54
54
}
55
55
}
56
56
57
- /**
58
- * {@inheritdoc}
59
- */
60
- public function sendRequests (array $ requests )
61
- {
62
- $ poolResult = Pool::batch ($ this ->client , $ requests );
63
- $ batchResult = new BatchResult ();
64
-
65
- foreach ($ poolResult as $ index => $ result ) {
66
- if ($ result instanceof ResponseInterface) {
67
- $ batchResult = $ batchResult ->addResponse ($ requests [$ index ], $ result );
68
- }
69
-
70
- if ($ result instanceof RequestException) {
71
- $ batchResult = $ batchResult ->addException ($ requests [$ index ], $ this ->createException ($ result ));
72
- }
73
- }
74
-
75
- if ($ batchResult ->hasExceptions ()) {
76
- throw new BatchException ($ batchResult );
77
- }
78
-
79
- return $ batchResult ;
80
- }
81
-
82
57
/**
83
58
* Converts a Guzzle exception into an Httplug exception
84
59
*
You can’t perform that action at this time.
0 commit comments