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:
stephan.kasdorf
2024-02-27 16:25:10 +01:00
parent a91372fd55
commit 16c1a08345
6 changed files with 341 additions and 113 deletions

View File

@@ -8,7 +8,7 @@ namespace Nibiru;
* @category - [PLEASE SPECIFIY]
* @license - BSD License
*/
use Nibiru\Autoloader\Autoloader;
use Nibiru\Auto\Auto;
final class Registry
{
@@ -47,7 +47,7 @@ final class Registry
*/
private function _setModulesPath( ): void
{
$this->_modules_path = __DIR__ . str_replace(Autoloader::REGEX_PATH_NAME, '', Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS][self::CONFIG_MODULE_KEY]);
$this->_modules_path = __DIR__ . str_replace(Auto::REGEX_PATH_NAME, '', Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS][self::CONFIG_MODULE_KEY]);
}
/**
@@ -114,7 +114,7 @@ final class Registry
*/
private function loadModuleRegistry(): void
{
foreach(Config::getInstance()->getConfig()[Autoloader::SETTINGS_SECTION][Autoloader::SETTINGS_CLASS_POS] as $module)
foreach(Config::getInstance()->getConfig()[Auto::SETTINGS_SECTION][Auto::SETTINGS_CLASS_POS] as $module)
{
$this->_setModuleName($module);
}