glhcp/server/vendor/khanamiryan/qrcode-detector-decoder/tests/bootstrap.php

16 lines
401 B
PHP
Raw Normal View History

2023-08-10 06:59:52 +00:00
<?php
require_once __DIR__ . '/../lib/common/customFunctions.php';
spl_autoload_register(function (string $class) {
$path = explode('\\', $class);
$className = array_pop($path);
array_shift($path);
$path = strtolower(implode('/', $path));
$path = __DIR__ . '/../lib/' . $path . '/' . $className . '.php';
if (file_exists($path)) {
require_once $path;
}
});