webhook2xmpp/includes/core_autoload.php
2021-04-26 23:01:23 +02:00

12 lines
No EOL
261 B
PHP

<?php
require ROOT_DIR . "/vendor/autoload.php";
function autoLoader($classname) {
$file = ROOT_DIR . '\\' . $classname . '.php';
$file = str_replace('\\', DIRECTORY_SEPARATOR, $file);
include_once $file;
}
spl_autoload_register('autoLoader');
?>