diff --git a/src/Response.php b/src/Response.php index 7890ae0..0bc869b 100755 --- a/src/Response.php +++ b/src/Response.php @@ -213,6 +213,17 @@ public function exit($data, int $code = 500) exit(); } + /** + * Output some data and break the application + * + * @param mixed $data The data to output + * @param int $code The Http status code + */ + public function die($data, int $code = 500) + { + $this->exit($data, $code); + } + /** * Redirect *