| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 3 | public function createResponse($responseObject, $status = 200, array $headers = array()) |
|
| 33 | { |
||
| 34 | 3 | $request = $this->app["request_stack"]->getCurrentRequest(); |
|
| 35 | 3 | $format = $request->getRequestFormat($this->app["conneg.defaultFormat"]); |
|
| 36 | |||
| 37 | 3 | return new Response($this->app['serializer']->serialize($responseObject, $format), $status, $headers); |
|
| 38 | } |
||
| 39 | |||
| 58 |