Skip to content

Commit 46219bd

Browse files
committed
Fix helper methods for responses
1 parent 12266aa commit 46219bd

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

src/Mvc/Controller/CronJobController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,5 @@ private function respond(array $data, int $statusCode = 200): void
704704
{
705705
http_response_code($statusCode);
706706
$this->response = array_merge($this->response, $data);
707-
echo json_encode($this->response);
708-
exit(0);
709707
}
710708
}

src/Mvc/Controller/CronJobExecutionController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,5 @@ private function respond(array $data, int $statusCode = 200): void
394394
{
395395
http_response_code($statusCode);
396396
$this->response = array_merge($this->response, $data);
397-
echo json_encode($this->response);
398-
exit(0);
399397
}
400398
}

src/Mvc/Controller/CronJobFunctionController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,5 @@ private function respondError(string $message, int $statusCode = 400): void
362362
{
363363
http_response_code($statusCode);
364364
$this->response['error'] = $message;
365-
echo json_encode($this->response);
366-
exit(0);
367365
}
368366
}

0 commit comments

Comments
 (0)