Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class SerializeResponseDataStep extends AbstractStep |
||
10 | { |
||
11 | 1 | public function execute() |
|
12 | { |
||
13 | 1 | $serializer = $this->getFromResponse('serializer'); |
|
14 | |||
15 | 1 | $serialized = $serializer->serialize( |
|
16 | 1 | $this->getFromResponse('response_data'), |
|
17 | 1 | $this->request->attributes->get('_format') |
|
18 | ); |
||
19 | 1 | return $this->createResponse(['response_data'=> $serialized], true); |
|
20 | |||
21 | |||
22 | } |
||
23 | |||
24 | 1 | public function requiresBefore() |
|
27 | } |
||
28 | } |