Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
13 | 9 | public function rpcAction(Request $request) |
|
14 | { |
||
15 | 9 | $args = $request->request; |
|
16 | 9 | $method = $args->get('method'); |
|
17 | 9 | $args->remove('method'); |
|
18 | 9 | $rpcRequest = new RpcRequest($method, $args->all()); |
|
19 | |||
20 | 9 | return new JsonResponse( |
|
21 | 9 | ['body' => $this->getResponse($rpcRequest, $request->attributes->get('_route'))->getBody()] |
|
22 | 4 | ); |
|
23 | } |
||
24 | |||
33 |