Skip to content

Commit 19fcb6d

Browse files
committed
Updates documentation
1 parent 5cc2a6f commit 19fcb6d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.scrutinizer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ checks:
66
duplication: true
77
tools:
88
external_code_coverage: true
9+
php_code_sniffer:
10+
config:
11+
standard: "PSR2"

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Currently the following discovery strategies are available:
2828

2929
- Http Adapter discovery
3030
- Message Factory discovery
31+
- URI Factory discovery
3132

3233

3334
### Http Adapter discovery
@@ -42,33 +43,33 @@ HttpAdapterDiscovery::register('my_adapter', 'My\Adapter\Class');
4243
$adapter = HttpAdapterDiscovery::find();
4344
```
4445

46+
4547
### Message Factory discovery
4648

47-
Two common message factories are bundled with this package. ([Guzzle](https://github.com/guzzle/psr7), [Diactoros](https://github.com/zendframework/zend-diactoros))
49+
Two common message factories are bundled with this package. ([Guzzle](https://github.com/guzzle/psr7) and [Diactoros](https://github.com/zendframework/zend-diactoros))
4850

4951
``` php
5052
use Http\Discovery\MessageFactoryDiscovery;
5153

52-
MessageFactoryDiscovery::register('my_factory', 'Psr\Request\Implementation\Class', 'My\Factory\Class');
54+
MessageFactoryDiscovery::register('my_factory', 'My\Factory\Class', 'Psr\Request\Implementation\Class');
5355

5456
$factory = MessageFactoryDiscovery::find();
5557
```
5658

59+
5760
### URI Factory discovery
5861

59-
Two common URI factories are bundled with this package: ([Guzzle](https://github.com/guzzle/psr7)
60-
and [Diactoros](https://github.com/zendframework/zend-diactoros)).
62+
Two common URI factories are bundled with this package: ([Guzzle](https://github.com/guzzle/psr7) and [Diactoros](https://github.com/zendframework/zend-diactoros)).
6163

6264
``` php
6365
use Http\Discovery\UriFactoryDiscovery;
6466

65-
MessageFactoryDiscovery::register('my_factory', 'Psr\Uri\Implementation\Class', 'My\Factory\Class');
67+
MessageFactoryDiscovery::register('my_factory', 'My\Factory\Class', 'Psr\Uri\Implementation\Class');
6668

6769
$factory = UriFactoryDiscovery::find();
6870
```
6971

7072

71-
7273
## Testing
7374

7475
``` bash

0 commit comments

Comments
 (0)