1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-25 12:04:07 +00:00
tcl_update_db/lib/autoloader.php

12 lines
327 B
PHP

<?php
set_include_path(__DIR__ . PATH_SEPARATOR . get_include_path());
function simpleAutoloader($class)
{
require_once __DIR__ . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
}
// PHP 7.0's default autoloader seems to have problems with PSR-4
spl_autoload_register('simpleAutoloader');