VERSION 1.0.0
Implement new auto class and refactor usages of deprecated autoloader A new automatic class loading mechanism has been introduced (Auto), replacing the deprecated Autoloader. This refactoring includes updating directory paths, changing the ownership of directories, and modifying file content strings. The codebase has been scoured to replace all instances of the discontinued Autoloader with the new class/method calls.
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
*/
|
||||
|
||||
namespace Nibiru;
|
||||
use Nibiru\Autoloader\Autoloader;
|
||||
require_once __DIR__ . '/../c/autoloader.php';
|
||||
use Nibiru\Auto\Auto;
|
||||
require_once __DIR__ . '/../c/auto.php';
|
||||
|
||||
final class Dispatcher
|
||||
{
|
||||
@@ -38,7 +38,8 @@ final class Dispatcher
|
||||
}
|
||||
Router::getInstance();
|
||||
Router::getInstance()->route();
|
||||
Autoloader::getInstance()->runRequireOnce();
|
||||
Auto::loader()->loadModelFiles();
|
||||
Auto::loader()->loadModules();
|
||||
if(is_file(__DIR__ . '/../../application/controller/' . Router::getInstance()->tplName() . 'Controller.php'))
|
||||
{
|
||||
require_once __DIR__ . '/../../application/controller/' . Router::getInstance()->tplName() . 'Controller.php';
|
||||
|
||||
Reference in New Issue
Block a user