Change autoload engine from spl to composer
This commit is contained in:
parent
10ff7818d0
commit
81510beb10
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user