Skip to content

Commit 120aaeb

Browse files
committed
Remove Client Context factory and Factory Awares/Templates from docs
1 parent cffbd09 commit 120aaeb

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

docs/message-factory.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ This package provides interfaces for PSR-7 factories including:
1919
- `StreamFactory`
2020
- `UploadedFileFactory` - WIP (PRs welcome)
2121
- `UriFactory`
22-
- `ClientContextFactory` (Combines `MessageFactory`, `StreamFactory` and `UriFactory`)
2322

2423

2524
A [virtual package](virtual-package.md) ([php-http/message-factory-implementation](https://packagist.org/providers/php-http/message-factory-implementation)) MAY be introduced which MUST be versioned together with this package.
@@ -36,24 +35,3 @@ class MyFactory implements SomeFactory
3635

3736
}
3837
```
39-
40-
41-
### Factory awares and templates
42-
43-
For each factory there is a helper interface and trait to ease injecting them into other objects (such as HTTP clients).
44-
45-
An example:
46-
47-
``` php
48-
use Http\Message\SomeFactoryAware;
49-
use Http\Message\SomeFactoryAwareTemplate;
50-
51-
class HttpClient implements SomeFactoryAware
52-
{
53-
use SomeFactoryAwareTemplate;
54-
}
55-
56-
$client = new HttpClient();
57-
$someFactory = $client->getSomeFactory();
58-
$client->setSomeFactory($someFactory);
59-
```

0 commit comments

Comments
 (0)