protected function sendResponse($output, $status = 200, $header = array(), $json = true)
    {
        $output = date('Y.m.d H:i:s') . " - $output";
        $data = json_encode(['output' => $output]);
        return new JsonResponse($data, $status, $header, $json);
    }
protected function sendResponse($output, $status = 200, $header = array(), $json = true)
    {
        $output = date('Y.m.d H:i:s') . " - $output";
        $data = json_encode(['output' => $output]);
        return new JsonResponse($data, $status, $header, $json);
    }
protected function sendResponse ( $ output , $ status = 200 , $ header = array ( ) , $ json = true ) { $ output = date ( 'Y.m.d H:i:s' ) . " - $output" ; $ data = json_encode ( [ 'output' => $ output ] ) ; return new JsonResponse ( $ data , $ status , $ header , $ json ) ; }
Erstellt das Response.
@param       $output
@param int   $status
@param array $header
@param bool  $json
@return JsonResponse
Erstellt das Response .