public function registerAutoloader(){
        $aliasManager = $this;
        spl_autoload_register(function($class) use($aliasManager) {
            $class = strtolower($class);
            if( !$aliasManager->checkIfAliasExists($class) ){
                if( !$aliasManager->findAlias($class) ){
                    throw new Exception("Class was not found! ($class)");
                }
            }

            $aliasManager->loadAlias($class);
        });
    }
public function registerAutoloader(){
        $aliasManager = $this;
        spl_autoload_register(function($class) use($aliasManager) {
            $class = strtolower($class);
            if( !$aliasManager->checkIfAliasExists($class) ){
                if( !$aliasManager->findAlias($class) ){
                    throw new Exception("Class was not found! ($class)");
                }
            }

            $aliasManager->loadAlias($class);
        });
    }
public function registerAutoloader ( ) { $ aliasManager = $ this ; spl_autoload_register ( function ( $ class ) use ( $ aliasManager ) { $ class = strtolower ( $ class ) ; if ( ! $ aliasManager -> checkIfAliasExists ( $ class ) ) { if ( ! $ aliasManager -> findAlias ( $ class ) ) { throw new Exception ( "Class was not found! ($class)" ) ; } } $ aliasManager -> loadAlias ( $ class ) ; } ) ; }
This method is used to register an alias autoloader, as an addition to composer.
This method is used to register an alias autoloader as an addition to composer .