| 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 |
||
| 18 | 7 | public function rpcAction(Request $request) |
|
| 19 | { |
||
| 20 | 7 | $args = $request->request; |
|
| 21 | 7 | $method = $args->get('method'); |
|
| 22 | 7 | $args->remove('method'); |
|
| 23 | 7 | $rpcRequest = new RequestImpl($method, $args->all()); |
|
| 24 | |||
| 25 | 7 | return new JsonResponse( |
|
| 26 | 7 | ['body' => $this->getResponse($rpcRequest, $request->attributes->get('_route'))->getBody()] |
|
| 27 | 3 | ); |
|
| 28 | } |
||
| 29 | |||
| 38 |