proxitok/app/Helpers/ErrorHandler.php
2022-03-29 19:30:31 +02:00

13 lines
294 B
PHP

<?php
namespace App\Helpers;
use App\Models\ErrorTemplate;
class ErrorHandler {
static public function show(object $meta) {
http_response_code($meta->http_code);
$latte = Wrappers::latte();
$latte->render(Misc::getView('error'), new ErrorTemplate($meta));
}
}