Skip to content

Commit

Permalink
Small fixes in discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Nov 18, 2015
1 parent 6d14457 commit f4072ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The discovery service is a set of static classes which allows to find and use in

Currently available discovery services:

- HTTP client Discovery
- HTTP Client Discovery
- PSR-7 Message Factory Discovery
- PSR-7 URI Factory Discovery

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

```
composer require "php-http/discovery"
$ composer require php-http/discovery
```

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

### Writing your own discovery

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.
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.
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.

Here is an example discovery:
Expand Down

0 comments on commit f4072ba

Please sign in to comment.