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