Skip to content

Commit f4072ba

Browse files
committed
Small fixes in discovery
1 parent 6d14457 commit f4072ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/discovery.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The discovery service is a set of static classes which allows to find and use in
55

66
Currently available discovery services:
77

8-
- HTTP client Discovery
8+
- HTTP Client Discovery
99
- PSR-7 Message Factory Discovery
1010
- PSR-7 URI Factory Discovery
1111

@@ -14,7 +14,7 @@ The principle is always the same: you call the static `find` method on the disco
1414
## Installation
1515

1616
```
17-
composer require "php-http/discovery"
17+
$ composer require php-http/discovery
1818
```
1919

2020
## HTTP Client Discovery
@@ -141,7 +141,7 @@ Classes registered manually are put on top of the list.
141141

142142
### Writing your own discovery
143143

144-
Each discovery service is based on the `ClassDiscovery` and has to specify a `cache` property and a `class` property to specify classes for the corresponding service.
144+
Each discovery service is based on the `ClassDiscovery` and has to specify a `cache` property and a `class` property to specify classes for the corresponding service.
145145
Since they are static, this properties need to be redeclared in each discovery class. If `ClassDiscovery` would declare them, they would be shared between the discovery classes which would make no sense.
146146

147147
Here is an example discovery:

0 commit comments

Comments
 (0)