X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/e0f69ba3ebc233b416eb83553bb9460075195d1a..56857f47034f0f8ec87954b8ad60c4c6d65280ac:/www/www-header.php diff --git a/www/www-header.php b/www/www-header.php index ef948e4..b58bd95 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -2,18 +2,7 @@ namespace phorkie; session_start(); -set_include_path( - __DIR__ . '/../src/' - . PATH_SEPARATOR . get_include_path() -); -spl_autoload_register( - function ($class) { - $file = str_replace(array('\\', '_'), '/', $class) . '.php'; - if (stream_resolve_include_path($file)) { - require $file; - } - } -); +require_once __DIR__ . '/../src/phorkie/autoload.php'; set_exception_handler( function ($e) { if ($e instanceof Exception) {