Response.php 273 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Lychee\Modules;
  3. final class Response {
  4. public static function warning($msg) {
  5. exit('Warning: ' . $msg);
  6. }
  7. public static function error($msg) {
  8. exit('Error: ' . $msg);
  9. }
  10. public static function json($str) {
  11. exit(json_encode($str));
  12. }
  13. }