Skip to content

Commit 95cb5d8

Browse files
committed
Readme improvements
1 parent 1c96d3b commit 95cb5d8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
# double-pass-compatibility [![Build Status](https://travis-ci.org/php-middleware/double-pass-compatibility.svg?branch=master)](https://travis-ci.org/php-middleware/double-pass-compatibility)
22

3-
Tools for support double pass middewares in PSR-15
4-
5-
This package provide trait and abstract class for your [psr-15 middlewares](https://github.com/http-interop/http-middleware#42-single-pass-lambda) to [double pass middewares](https://github.com/http-interop/http-middleware#41-double-pass) support.
6-
7-
So you can call your middleware in both styles.
3+
This package provide trait and abstract class for your [psr-15 middlewares](https://github.com/http-interop/http-middleware#42-single-pass-lambda) to [double pass middewares](https://github.com/http-interop/http-middleware#41-double-pass) support. So you can call your middleware in both styles.
84

95
**Standard PSR-15 call:**
106

117
```php
12-
$middeware->process($request, $delegate);
8+
$middleware->process($request, $delegate);
139
```
1410

1511
**Possible call after implements this package:**
@@ -24,7 +20,7 @@ $middleware($request, $response, $next);
2420
composer require php-middleware/double-pass-compatibility
2521
```
2622

27-
and add trait into your middeware:
23+
You can add trait into your middeware:
2824

2925
```php
3026
class Middleware implements MiddlewareInterface
@@ -38,7 +34,7 @@ class Middleware implements MiddlewareInterface
3834
}
3935
```
4036

41-
or extend abstract class:
37+
Or extend abstract class:
4238

4339
```php
4440
class Middleware extend AbstractDoublePassCompatibilityMiddleware implements MiddlewareInterface

0 commit comments

Comments
 (0)