Skip to content

Commit ac4791e

Browse files
authored
Update README.md
1 parent 7dcc0d0 commit ac4791e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Login example:
2525
use Selective\Validation\ValidationException;
2626
use Selective\Validation\ValidationResult;
2727

28+
// ...
29+
2830
// Get all POST values
2931
$data = $request->getParsedBody();
3032

@@ -55,6 +57,8 @@ if ($validation->isFailed()) {
5557
This validation middleware catches the `ValidationException` exception and converts it into a nice JSON response:
5658

5759
```php
60+
use Psr\Http\Message\ResponseInterface as Response;
61+
use Psr\Http\Message\ServerRequestInterface as Request;
5862
use Selective\Validation\ValidationException;
5963

6064
// Validation middleware

0 commit comments

Comments
 (0)