You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/message-factory.md
+3-21Lines changed: 3 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,9 @@
6
6
## Rationale
7
7
8
8
While it should be possible to use every PSR-7 aware HTTP client with any RequestInterface implementation,
9
-
creating the request objects will still tie an application to a specific implementation.
10
-
In the case of reusable libraries, an application could end up installing several request implementations.
9
+
creating the request objects will still tie the code to a specific implementation.
10
+
If each reusable library is tied to a specific message implementation,
11
+
an application could end up installing several message implementations.
11
12
The factories abstract away from this.
12
13
13
14
The FIG was pretty straightforward by NOT putting any construction logic into PSR-7.
@@ -23,22 +24,3 @@ This package provides interfaces for PSR-7 factories including:
23
24
-`StreamFactory`
24
25
-`UploadedFileFactory` - WIP (PRs welcome)
25
26
-`UriFactory`
26
-
27
-
28
-
A [virtual package](/httplug/virtual-package) ([php-http/message-factory-implementation](https://packagist.org/providers/php-http/message-factory-implementation))
29
-
MAY be introduced which MUST be versioned together with this package.
30
-
31
-
The adapter repositories provide wrapper classes for those factories to
32
-
implement the `Http\Message\MessageFactory` interface.
0 commit comments