Skip to content

Commit c1986e4

Browse files
committed
Update README
1 parent f5cc760 commit c1986e4

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

README.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ use Yoanm\JsonRpcServer\App\Serialization\JsonRpcCallDenormalizer;
107107
use Yoanm\JsonRpcServer\App\Serialization\JsonRpcCallResponseNormalizer;
108108
use Yoanm\JsonRpcServer\App\Serialization\JsonRpcCallSerializer;
109109
use Yoanm\JsonRpcServer\App\Serialization\JsonRpcRequestDenormalizer;
110+
use Yoanm\JsonRpcServer\App\Serialization\JsonRpcResponseErrorNormalizer;
110111
use Yoanm\JsonRpcServer\App\Serialization\JsonRpcResponseNormalizer;
111112
use Yoanm\JsonRpcServer\Infra\Endpoint\JsonRpcEndpoint;
112113

@@ -118,7 +119,8 @@ $jsonRpcSerializer = new JsonRpcCallSerializer(
118119
new JsonRpcRequestDenormalizer()
119120
),
120121
new JsonRpcCallResponseNormalizer(
121-
new JsonRpcResponseNormalizer()
122+
new JsonRpcResponseNormalizer()
123+
// or `new JsonRpcResponseNormalizer(new JsonRpcResponseErrorNormalizer())` for debug purpose
122124
)
123125
);
124126
$responseCreator = new ResponseCreator();
@@ -327,21 +329,6 @@ $validator = new class implements JsonRpcMethodParamsValidatorInterface
327329
$requestHandler->setMethodParamsValidator($validator);
328330
```
329331

330-
## Makefile
331-
332-
```bash
333-
# Install and configure project
334-
make build
335-
# Launch tests (PHPUnit & behat)
336-
make test
337-
# Check project code style
338-
make codestyle
339-
# Generate PHPUnit coverage
340-
make coverage
341-
# Generate Behat coverage
342-
make behat-coverage
343-
```
344-
345332
## Contributing
346333

347334
See [contributing note](./CONTRIBUTING.md)

0 commit comments

Comments
 (0)