src/Nabu/Autoloader.php
public function registerPackages($package, $path)
    {
        $this->updateLog("info", "Preparing package {$package} for registration with path {$path}.");

        $package = trim($package, "\\");
        $package = $package . "\\";

        $path = rtrim($path, DIRECTORY_SEPARATOR);
        $path = $path . "/";

        $path_registered = $this->registrationExists($package, $path);

        if (!$path_registered) {
            $this->packages[$package][] = $path;

            $this->updateLog("info", "Registered index {$package} as {$path}");
        }
    }
public function registerPackages($package, $path)
    {
        $this->updateLog("info", "Preparing package {$package} for registration with path {$path}.");

        $package = trim($package, "\\");
        $package = $package . "\\";

        $path = rtrim($path, DIRECTORY_SEPARATOR);
        $path = $path . "/";

        $path_registered = $this->registrationExists($package, $path);

        if (!$path_registered) {
            $this->packages[$package][] = $path;

            $this->updateLog("info", "Registered index {$package} as {$path}");
        }
    }
public function registerPackages ( $ package , $ path ) { $ this -> updateLog ( "info" , "Preparing package {$package} for registration with path {$path}." ) ; $ package = trim ( $ package , "\\" ) ; $ package = $ package . "\\" ; $ path = rtrim ( $ path , DIRECTORY_SEPARATOR ) ; $ path = $ path . "/" ; $ path_registered = $ this -> registrationExists ( $ package , $ path ) ; if ( ! $ path_registered ) { $ this -> packages [ $ package ] [ ] = $ path ; $ this -> updateLog ( "info" , "Registered index {$package} as {$path}" ) ; } }
Registers a given package with an associated path.

Duplicate package/path combinations will not be re-registered.

@param string $package   The name of the package to be registered
@param string $path      The path to be associated with the registered package

@return void
Registers a given package with an associated path .