forked from projects/fipamo
b092645733
I didn't like the extra step that had to be taken to register new classes from the command line using composer's auto dump, so a quick script was implemented to handle Fipamo loading classes seperately so composer can manage itself, removing the need for updating it whenever I add a new classs to the codebase
11 lines
252 B
PHP
11 lines
252 B
PHP
<?php
|
|
|
|
spl_autoload_register(function ($className) {
|
|
$file = dirname(__DIR__) . '\\' . $className . '.php';
|
|
$file = str_replace('\\', DIRECTORY_SEPARATOR, $file);
|
|
//echo $file;
|
|
if (file_exists($file)) {
|
|
include $file;
|
|
}
|
|
});
|