1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-09-20 09:13:25 +01:00
tcl_update_db/lib/autoloader.php

12 lines
327 B
PHP
Raw Normal View History

2017-11-12 15:35:28 +00:00
<?php
set_include_path(__DIR__ . PATH_SEPARATOR . get_include_path());
2017-11-12 16:50:29 +00:00
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');