Is responsible to take the generated data and prepare a response for it.
public createResponse ( |
||
$data | The processed data. | |
$queryConfiguration | OpenSkill\Datatable\Queries\QueryConfiguration | the query configuration for the current request. |
$columnConfigurations | array | the column configurations for the current data table. |
Résultat | Symfony\Component\HttpFoundation\JsonResponse | the response that should be returned to the client. |
public function testParse() { $cc = $this->version->parseRequest([]); $this->assertNotNull($cc); $rsp = $this->version->createResponse(new ResponseData(new Collection([]), 123), $cc, []); $this->assertNotNull($rsp); }