src/Nabu/Autoloader.php
protected function loadPackage($package_name, $class_name)
    {
        $this->updateLog("info", "Working on loading {$class_name} from {$package_name}");

        $file_required = false;

        foreach ($this->packages[$package_name] as $path) {
            $converted_class = str_replace('\\', DIRECTORY_SEPARATOR, $class_name);
            $class_path      = $path . $converted_class . ".php";

            $this->updateLog("debug", "Class file path is {$class_path}");

            $file_required = $this->requireFile($class_path);
        }

        return $file_required;
    }
protected function loadPackage($package_name, $class_name)
    {
        $this->updateLog("info", "Working on loading {$class_name} from {$package_name}");

        $file_required = false;

        foreach ($this->packages[$package_name] as $path) {
            $converted_class = str_replace('\\', DIRECTORY_SEPARATOR, $class_name);
            $class_path      = $path . $converted_class . ".php";

            $this->updateLog("debug", "Class file path is {$class_path}");

            $file_required = $this->requireFile($class_path);
        }

        return $file_required;
    }
protected function loadPackage ( $ package_name , $ class_name ) { $ this -> updateLog ( "info" , "Working on loading {$class_name} from {$package_name}" ) ; $ file_required = false ; foreach ( $ this -> packages [ $ package_name ] as $ path ) { $ converted_class = str_replace ( '\\' , DIRECTORY_SEPARATOR , $ class_name ) ; $ class_path = $ path . $ converted_class . ".php" ; $ this -> updateLog ( "debug" , "Class file path is {$class_path}" ) ; $ file_required = $ this -> requireFile ( $ class_path ) ; } return $ file_required ; }
Loads a package based on registered paths associated with the package.

@param string $package_name  The name of the package in Vendor\Package format
@param string $class_name    The full, relative name of the class with the vendor and package names stripped

@return bool                 The path to the class on success; otherwise false
Loads a package based on registered paths associated with the package .