3 * Autoloader setup for phorkie
5 * @author Christian Weiske <cweiske@cweiske.de>
7 if (file_exists(__DIR__ . '/../../lib/autoload.php')) {
8 //composer-installed dependencies available
11 . PATH_SEPARATOR . '.'
13 require_once __DIR__ . '/../../lib/autoload.php';
15 //use default include path for dependencies
18 . PATH_SEPARATOR . get_include_path()
22 spl_autoload_register(
24 $file = str_replace(array('\\', '_'), '/', $class) . '.php';
25 if (stream_resolve_include_path($file)) {