Change autoload engine from spl to composer

This commit is contained in:
Gregorio Chiko Putra 2017-09-04 11:17:30 +07:00
parent 10ff7818d0
commit 81510beb10

View File

@ -1,12 +1,6 @@
<?php
spl_autoload_register(function($class)
{
$root = dirname(__DIR__);
if(is_readable($file = $root . '/' . str_replace('\\', '/', $class) . '.php'))
{
require $file;
}
});
// Autoload
require_once dirname(__DIR__).'/vendor/autoload.php';
$router = new Core\Router();