update to kirby 4.8

This commit is contained in:
isUnknown 2026-02-13 15:40:11 +01:00
commit 7d7df341d1
636 changed files with 139949 additions and 0 deletions

31
kirby/config/setup.php Normal file
View file

@ -0,0 +1,31 @@
<?php
/**
* Class aliases
*/
$aliases = require_once __DIR__ . '/aliases.php';
spl_autoload_register(function ($class) use ($aliases) {
$class = strtolower($class);
if (isset($aliases[$class]) === true) {
class_alias($aliases[$class], $class);
}
});
/**
* Tests
*/
$testDir = dirname(__DIR__) . '/tests';
if (is_dir($testDir) === true) {
spl_autoload_register(function ($className) use ($testDir) {
$path = str_replace('Kirby\\', '', $className);
$path = str_replace('\\', '/', $path);
$file = $testDir . '/' . $path . '.php';
if (file_exists($file)) {
include $file;
}
});
}