remove codeigniter
This commit is contained in:
@@ -2,30 +2,6 @@
|
||||
|
||||
use Carbon\CarbonImmutable;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
if (!function_exists('log_message')) {
|
||||
function log_message(string $level, string $message, array $context = []): void
|
||||
{
|
||||
$level = strtolower($level);
|
||||
$logger = Log::channel(config('logging.default'));
|
||||
$context = $context;
|
||||
if (!empty($context)) {
|
||||
$message = strtr($message, array_combine(
|
||||
array_map(fn($k) => "{" . $k . "}", array_keys($context)),
|
||||
array_map('strval', $context)
|
||||
));
|
||||
}
|
||||
$logger->{$level}($message);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('esc')) {
|
||||
function esc($value): string
|
||||
{
|
||||
return e($value);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('utc_now')) {
|
||||
function utc_now(): string
|
||||
@@ -53,13 +29,6 @@ if (!function_exists('user_timezone')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('model')) {
|
||||
function model(string $class)
|
||||
{
|
||||
return app()->make($class);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('pbkdf2_hash')) {
|
||||
function pbkdf2_hash(string $password, string $algo = 'sha256', int $iterations = 100000, int $length = 64): string
|
||||
{
|
||||
@@ -97,15 +66,8 @@ if (!function_exists('pbkdf2_verify')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('legacy_password_verify')) {
|
||||
function legacy_password_verify(string $password, ?string $storedHash): bool
|
||||
{
|
||||
return ci_password_verify($password, $storedHash);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('ci_password_verify')) {
|
||||
function ci_password_verify(string $password, ?string $storedHash): bool
|
||||
if (!function_exists('verify_stored_password')) {
|
||||
function verify_stored_password(string $password, ?string $storedHash): bool
|
||||
{
|
||||
if (!$storedHash) {
|
||||
return false;
|
||||
Reference in New Issue
Block a user