proxitok/app/Helpers/ErrorHandler.php
2022-05-24 14:10:41 +02:00

14 lines
320 B
PHP

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