2024-08-25 01:50:52 +00:00
|
|
|
<?php
|
2024-11-14 01:22:18 +00:00
|
|
|
namespace Syokuhou;
|
2024-08-25 01:50:52 +00:00
|
|
|
|
2024-11-14 01:22:18 +00:00
|
|
|
require_once __DIR__ . '/../syokuhou.php';
|
2024-08-25 01:50:52 +00:00
|
|
|
|
|
|
|
set_exception_handler(function(\Throwable $ex) {
|
|
|
|
\Sentry\captureException($ex);
|
|
|
|
|
|
|
|
ob_clean();
|
|
|
|
|
|
|
|
http_response_code(500);
|
|
|
|
header('Content-Type: text/plain; charset=utf-8');
|
|
|
|
|
2024-11-14 01:22:18 +00:00
|
|
|
if(SKH_DEBUG)
|
2024-08-25 01:50:52 +00:00
|
|
|
echo (string)$ex;
|
|
|
|
else
|
|
|
|
echo 'Internal Server Error';
|
|
|
|
exit;
|
|
|
|
});
|
|
|
|
|
|
|
|
$ctx->getRouter()->dispatch();
|