|
1
|
<?php |
|
2
|
require_once dirname(__FILE__) . "/vendor/autoload.php"; |
|
3
|
|
|
4
|
spl_autoload_register(function ($class) { |
|
5
|
$file = str_replace("\\", DIRECTORY_SEPARATOR, $class) . ".php"; |
|
6
|
$path = __DIR__ . DIRECTORY_SEPARATOR . $file; |
|
7
|
if (file_exists($path)) { |
|
8
|
require_once $path; |
|
9
|
} |
|
10
|
}); |
|
11
|
|