Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit fe66a64

Browse files
committed
update wording
1 parent 0b934d6 commit fe66a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/book/cookbook/using-middleware-in-dispatch-event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AuthorizationMiddleware
1414
}
1515
```
1616

17-
As the request and response in 'dispatch' event is a `Zend\Http` Request and Response object, we need the bridge to convert into PSR-7 Request and Response. To do that, you can do the following:
17+
As the request and response in 'dispatch' event is a `Zend\Http` Request and Response object, we need the bridge to convert into PSR-7 Request and Response, and then, the result of invoked `AuthorizationMiddleware` above needs to be converted to `Zend\Http` Response if an instance of `Psr\Http\Message\ResponseInterface`. To do that, you can do the following:
1818

1919
```php
2020
namespace Application;

0 commit comments

Comments
 (0)