blob: c34d0b49c7c6b875d1ca264dd1bb2288cb9425b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
spl_autoload_register(
function ($class) {
if (strpos($class, 'IPLib\\') !== 0) {
return;
}
$file = __DIR__ . DIRECTORY_SEPARATOR . 'src' . str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen('IPLib'))) . '.php';
if (is_file($file)) {
require_once $file;
}
}
);
|