13
13
14
14
use Http \Adapter \CoreHttpAdapter ;
15
15
use Http \Adapter \HttpAdapterException ;
16
- use Http \Adapter \Message \InternalRequestInterface ;
17
16
use Http \Adapter \Message \RequestInterface ;
18
17
use Http \Adapter \Message \ResponseInterface ;
19
18
use Http \Adapter \MultiHttpAdapterException ;
@@ -400,58 +399,58 @@ public function requestProvider()
400
399
public function internalRequestProvider ()
401
400
{
402
401
return [
403
- [$ this ->getUri (), InternalRequestInterface ::METHOD_GET ],
404
- [$ this ->getUri (), InternalRequestInterface ::METHOD_GET , $ this ->getHeaders ()],
405
- [$ this ->getUri (), InternalRequestInterface ::METHOD_HEAD ],
406
- [$ this ->getUri (), InternalRequestInterface ::METHOD_HEAD , $ this ->getHeaders ()],
407
- [$ this ->getUri (), InternalRequestInterface ::METHOD_TRACE ],
408
- [$ this ->getUri (), InternalRequestInterface ::METHOD_TRACE , $ this ->getHeaders ()],
409
- [$ this ->getUri (), InternalRequestInterface ::METHOD_POST ],
410
- [$ this ->getUri (), InternalRequestInterface ::METHOD_POST , $ this ->getHeaders ()],
411
- [$ this ->getUri (), InternalRequestInterface ::METHOD_POST , $ this ->getHeaders (), $ this ->getData ()],
402
+ [$ this ->getUri (), RequestInterface ::METHOD_GET ],
403
+ [$ this ->getUri (), RequestInterface ::METHOD_GET , $ this ->getHeaders ()],
404
+ [$ this ->getUri (), RequestInterface ::METHOD_HEAD ],
405
+ [$ this ->getUri (), RequestInterface ::METHOD_HEAD , $ this ->getHeaders ()],
406
+ [$ this ->getUri (), RequestInterface ::METHOD_TRACE ],
407
+ [$ this ->getUri (), RequestInterface ::METHOD_TRACE , $ this ->getHeaders ()],
408
+ [$ this ->getUri (), RequestInterface ::METHOD_POST ],
409
+ [$ this ->getUri (), RequestInterface ::METHOD_POST , $ this ->getHeaders ()],
410
+ [$ this ->getUri (), RequestInterface ::METHOD_POST , $ this ->getHeaders (), $ this ->getData ()],
412
411
[
413
412
$ this ->getUri (),
414
- InternalRequestInterface ::METHOD_POST ,
413
+ RequestInterface ::METHOD_POST ,
415
414
$ this ->getHeaders (),
416
415
$ this ->getData (),
417
416
$ this ->getFiles (),
418
417
],
419
- [$ this ->getUri (), InternalRequestInterface ::METHOD_PUT ],
420
- [$ this ->getUri (), InternalRequestInterface ::METHOD_PUT , $ this ->getHeaders ()],
421
- [$ this ->getUri (), InternalRequestInterface ::METHOD_PUT , $ this ->getHeaders (), $ this ->getData ()],
418
+ [$ this ->getUri (), RequestInterface ::METHOD_PUT ],
419
+ [$ this ->getUri (), RequestInterface ::METHOD_PUT , $ this ->getHeaders ()],
420
+ [$ this ->getUri (), RequestInterface ::METHOD_PUT , $ this ->getHeaders (), $ this ->getData ()],
422
421
[
423
422
$ this ->getUri (),
424
- InternalRequestInterface ::METHOD_PUT ,
423
+ RequestInterface ::METHOD_PUT ,
425
424
$ this ->getHeaders (),
426
425
$ this ->getData (),
427
426
$ this ->getFiles (),
428
427
],
429
- [$ this ->getUri (), InternalRequestInterface ::METHOD_PATCH ],
430
- [$ this ->getUri (), InternalRequestInterface ::METHOD_PATCH , $ this ->getHeaders ()],
431
- [$ this ->getUri (), InternalRequestInterface ::METHOD_PATCH , $ this ->getHeaders (), $ this ->getData ()],
428
+ [$ this ->getUri (), RequestInterface ::METHOD_PATCH ],
429
+ [$ this ->getUri (), RequestInterface ::METHOD_PATCH , $ this ->getHeaders ()],
430
+ [$ this ->getUri (), RequestInterface ::METHOD_PATCH , $ this ->getHeaders (), $ this ->getData ()],
432
431
[
433
432
$ this ->getUri (),
434
- InternalRequestInterface ::METHOD_PATCH ,
433
+ RequestInterface ::METHOD_PATCH ,
435
434
$ this ->getHeaders (),
436
435
$ this ->getData (),
437
436
$ this ->getFiles (),
438
437
],
439
- [$ this ->getUri (), InternalRequestInterface ::METHOD_DELETE ],
440
- [$ this ->getUri (), InternalRequestInterface ::METHOD_DELETE , $ this ->getHeaders ()],
441
- [$ this ->getUri (), InternalRequestInterface ::METHOD_DELETE , $ this ->getHeaders (), $ this ->getData ()],
438
+ [$ this ->getUri (), RequestInterface ::METHOD_DELETE ],
439
+ [$ this ->getUri (), RequestInterface ::METHOD_DELETE , $ this ->getHeaders ()],
440
+ [$ this ->getUri (), RequestInterface ::METHOD_DELETE , $ this ->getHeaders (), $ this ->getData ()],
442
441
[
443
442
$ this ->getUri (),
444
- InternalRequestInterface ::METHOD_DELETE ,
443
+ RequestInterface ::METHOD_DELETE ,
445
444
$ this ->getHeaders (),
446
445
$ this ->getData (),
447
446
$ this ->getFiles (),
448
447
],
449
- [$ this ->getUri (), InternalRequestInterface ::METHOD_OPTIONS ],
450
- [$ this ->getUri (), InternalRequestInterface ::METHOD_OPTIONS , $ this ->getHeaders ()],
451
- [$ this ->getUri (), InternalRequestInterface ::METHOD_OPTIONS , $ this ->getHeaders (), $ this ->getData ()],
448
+ [$ this ->getUri (), RequestInterface ::METHOD_OPTIONS ],
449
+ [$ this ->getUri (), RequestInterface ::METHOD_OPTIONS , $ this ->getHeaders ()],
450
+ [$ this ->getUri (), RequestInterface ::METHOD_OPTIONS , $ this ->getHeaders (), $ this ->getData ()],
452
451
[
453
452
$ this ->getUri (),
454
- InternalRequestInterface ::METHOD_OPTIONS ,
453
+ RequestInterface ::METHOD_OPTIONS ,
455
454
$ this ->getHeaders (),
456
455
$ this ->getData (),
457
456
$ this ->getFiles (),
@@ -470,7 +469,7 @@ public function requestsProvider()
470
469
$ requests [] = [
471
470
$ request [0 ],
472
471
$ request [1 ],
473
- InternalRequestInterface ::PROTOCOL_VERSION_1_1 ,
472
+ RequestInterface ::PROTOCOL_VERSION_1_1 ,
474
473
isset ($ request [2 ]) ? $ request [2 ] : [],
475
474
isset ($ request [3 ]) ? $ request [3 ] : [],
476
475
isset ($ request [4 ]) ? $ request [4 ] : [],
@@ -481,7 +480,7 @@ public function requestsProvider()
481
480
$ requests [] = $ this ->httpAdapter ->getConfiguration ()->getMessageFactory ()->createRequest (
482
481
$ request [0 ],
483
482
$ request [1 ],
484
- InternalRequestInterface ::PROTOCOL_VERSION_1_1 ,
483
+ RequestInterface ::PROTOCOL_VERSION_1_1 ,
485
484
isset ($ request [2 ]) ? $ request [2 ] : [],
486
485
http_build_query (isset ($ request [3 ]) ? $ request [3 ] : [], null , '& ' )
487
486
);
@@ -491,7 +490,7 @@ public function requestsProvider()
491
490
$ requests [] = $ this ->httpAdapter ->getConfiguration ()->getMessageFactory ()->createInternalRequest (
492
491
$ request [0 ],
493
492
$ request [1 ],
494
- InternalRequestInterface ::PROTOCOL_VERSION_1_1 ,
493
+ RequestInterface ::PROTOCOL_VERSION_1_1 ,
495
494
isset ($ request [2 ]) ? $ request [2 ] : [],
496
495
isset ($ request [3 ]) ? $ request [3 ] : [],
497
496
isset ($ request [4 ]) ? $ request [4 ] : []
0 commit comments