File tree Expand file tree Collapse file tree 6 files changed +8
-256
lines changed Expand file tree Collapse file tree 6 files changed +8
-256
lines changed Original file line number Diff line number Diff line change 12
12
namespace Http \Adapter \Exception ;
13
13
14
14
use Http \Adapter \Exception ;
15
- use Http \Adapter \ Message \InternalRequest ;
15
+ use Psr \ Http \Message \RequestInterface ;
16
16
use Psr \Http \Message \ResponseInterface ;
17
17
18
18
/**
@@ -23,7 +23,7 @@ interface HttpAdapterException extends Exception
23
23
/**
24
24
* Returns the request
25
25
*
26
- * @return InternalRequest |null
26
+ * @return RequestInterface |null
27
27
*/
28
28
public function getRequest ();
29
29
@@ -37,9 +37,9 @@ public function hasRequest();
37
37
/**
38
38
* Sets the request
39
39
*
40
- * @param InternalRequest |null $request
40
+ * @param RequestInterface |null $request
41
41
*/
42
- public function setRequest (InternalRequest $ request = null );
42
+ public function setRequest (RequestInterface $ request = null );
43
43
44
44
/**
45
45
* Returns the response
Original file line number Diff line number Diff line change 12
12
namespace Http \Adapter ;
13
13
14
14
/**
15
- * Allows global configurations
15
+ * Provides a configuration reading interface
16
16
*
17
17
* This interface does not allow modifying options
18
18
*
Original file line number Diff line number Diff line change 15
15
use Http \Adapter \HasConfiguration ;
16
16
17
17
/**
18
- * Allows to modify configuration in a request an immutable way
18
+ * Allows to modify configuration in a message an immutable way
19
19
*
20
20
* @author Márk Sági-Kazár [email protected] >
21
21
*/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ interface MessageFactory
25
25
/**
26
26
* Returns the base URI
27
27
*
28
- * @return null| UriInterface
28
+ * @return UriInterface|null
29
29
*/
30
30
public function getBaseUri ();
31
31
@@ -39,7 +39,7 @@ public function hasBaseUri();
39
39
/**
40
40
* Sets the base URI
41
41
*
42
- * @param null| string|UriInterface $baseUri
42
+ * @param string|UriInterface|null $baseUri
43
43
*
44
44
* @throws \InvalidArgumentException If the base uri is invalid.
45
45
*/
@@ -64,31 +64,6 @@ public function createRequest(
64
64
$ body = null
65
65
);
66
66
67
- /**
68
- * Creates an internal request
69
- *
70
- * @param string $method
71
- * @param string|UriInterface $uri
72
- * @param string $protocolVersion
73
- * @param string[] $headers
74
- * @param array|string $data
75
- * @param array $files
76
- * @param array $parameters
77
- * @param array $options
78
- *
79
- * @return InternalRequest
80
- */
81
- public function createInternalRequest (
82
- $ method ,
83
- $ uri ,
84
- $ protocolVersion = '1.1 ' ,
85
- array $ headers = [],
86
- $ data = [],
87
- array $ files = [],
88
- array $ parameters = [],
89
- array $ options = []
90
- );
91
-
92
67
/**
93
68
* Creates a response
94
69
*
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments