Skip to content

Commit 2296f45

Browse files
authored
Merge pull request #3 from shadowhand/fix/phpdoc-summary
Update docblocks with official documentation
2 parents e012371 + 9aad1c5 commit 2296f45

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/MiddlewareInterface.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@
66
use Psr\Http\Message\ServerRequestInterface;
77

88
/**
9-
* An HTTP middleware component participates in processing an HTTP message,
10-
* either by acting on the request or the response. This interface defines the
11-
* methods required to use the middleware.
9+
* Participant in processing a server request and response.
10+
*
11+
* An HTTP middleware component participates in processing an HTTP message:
12+
* by acting on the request, generating the response, or forwarding the
13+
* request to a subsequent middleware and possibly acting on its response.
1214
*/
1315
interface MiddlewareInterface
1416
{
1517
/**
16-
* Process an incoming server request and return a response, optionally delegating
17-
* response creation to a handler.
18+
* Process an incoming server request.
19+
*
20+
* Processes an incoming server request in order to produce a response.
21+
* If unable to produce the response itself, it may delegate to the provided
22+
* request handler to do so.
1823
*/
1924
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface;
2025
}

0 commit comments

Comments
 (0)