File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ use Yoanm\JsonRpcServer\App\Serialization\JsonRpcCallDenormalizer;
107107use Yoanm\JsonRpcServer\App\Serialization\JsonRpcCallResponseNormalizer;
108108use Yoanm\JsonRpcServer\App\Serialization\JsonRpcCallSerializer;
109109use Yoanm\JsonRpcServer\App\Serialization\JsonRpcRequestDenormalizer;
110+ use Yoanm\JsonRpcServer\App\Serialization\JsonRpcResponseErrorNormalizer;
110111use Yoanm\JsonRpcServer\App\Serialization\JsonRpcResponseNormalizer;
111112use 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
347334See [ contributing note] ( ./CONTRIBUTING.md )
You can’t perform that action at this time.
0 commit comments