You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
http/src/functions.php

19 lines
426 B
PHP

<?php
namespace BitCommunism\Http;
if (!function_exists(__NAMESPACE__ . '\\handle')) {
function handle($call, $settings = []): Handle
{
return new Handle($call, $settings);
}
}
if (!function_exists(__NAMESPACE__ . '\\redirect')) {
function redirect($to, $status = 302)
{
return handle(function (Context $c) use ($to, $status) {
$c->redirect($to, $status);
});
}
}