Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
19 | 7 | public function rpcAction(Request $request) |
|
20 | { |
||
21 | 7 | $args = $request->request; |
|
22 | 7 | $method = $args->get('method'); |
|
23 | 7 | $args->remove('method'); |
|
24 | 7 | $rpcRequest = new RpcRequest($method, $args->all()); |
|
25 | |||
26 | 7 | return new JsonResponse( |
|
27 | 7 | ['body' => $this->getResponse($rpcRequest, $request->attributes->get('_route'))->getBody()] |
|
28 | 3 | ); |
|
29 | } |
||
30 | |||
39 |