Change autoload engine from spl to composer
This commit is contained in:
parent
10ff7818d0
commit
81510beb10
@ -1,12 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
spl_autoload_register(function($class)
|
// Autoload
|
||||||
{
|
require_once dirname(__DIR__).'/vendor/autoload.php';
|
||||||
$root = dirname(__DIR__);
|
|
||||||
if(is_readable($file = $root . '/' . str_replace('\\', '/', $class) . '.php'))
|
|
||||||
{
|
|
||||||
require $file;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$router = new Core\Router();
|
$router = new Core\Router();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user