mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
* Simple refactoring of the config system * Add new unstyled template * Add new modern template (previously the only) * Add placeholder for blocky template * Relocate autoloader * Move build to ./bin
17 lines
402 B
PHP
17 lines
402 B
PHP
<?php
|
|
|
|
spl_autoload_register(function ($className) {
|
|
$namespaces = explode('\\', $className);
|
|
if (count($namespaces) > 1) {
|
|
$classPath
|
|
= APPLICATION_BASE_PATH
|
|
. '/vendor/'
|
|
. implode('/', $namespaces)
|
|
. '.php';
|
|
if (file_exists($classPath)) {
|
|
require_once($classPath);
|
|
}
|
|
}
|
|
});
|
|
|
|
/* End of file autoload.php */ |