markdown-resume/vendor/autoload.php
Craig Davis a98b3602f5 Initial work towards template support
* 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
2013-03-18 21:36:06 -05:00

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 */