public static function add($prefix, $base_dir, $prepend = false) {

        //Normalize namespace prefix
        $prefix = trim($prefix, '\\') . '\\';

        //Normalize the base directory with a trailing separator
        $base_dir = rtrim($base_dir, DIRECTORY_SEPARATOR) . '/';

        //Initialize the namespace prefix array
        if(false === isset(static :: $psr0[$prefix])) {
            static :: $psr0[$prefix] = [];
        }

        //Retain the base directory for the namespace prefix
        if(true === $prepend) {
            array_unshift(static :: $psr0[$prefix], $base_dir);
        } else {
            array_push(static :: $psr0[$prefix], $base_dir);
        }
    }
public static function add($prefix, $base_dir, $prepend = false) {

        //Normalize namespace prefix
        $prefix = trim($prefix, '\\') . '\\';

        //Normalize the base directory with a trailing separator
        $base_dir = rtrim($base_dir, DIRECTORY_SEPARATOR) . '/';

        //Initialize the namespace prefix array
        if(false === isset(static :: $psr0[$prefix])) {
            static :: $psr0[$prefix] = [];
        }

        //Retain the base directory for the namespace prefix
        if(true === $prepend) {
            array_unshift(static :: $psr0[$prefix], $base_dir);
        } else {
            array_push(static :: $psr0[$prefix], $base_dir);
        }
    }
public static function add ( $ prefix , $ base_dir , $ prepend = false ) { //Normalize namespace prefix
 $ prefix = trim ( $ prefix , '\\' ) . '\\' ; //Normalize the base directory with a trailing separator
 $ base_dir = rtrim ( $ base_dir , DIRECTORY_SEPARATOR ) . '/' ; //Initialize the namespace prefix array
 if ( false === isset ( static :: $ psr0 [ $ prefix ] ) ) { static :: $ psr0 [ $ prefix ] = [ ] ; } //Retain the base directory for the namespace prefix
 if ( true === $ prepend ) { array_unshift ( static :: $ psr0 [ $ prefix ] , $ base_dir ) ; } else { array_push ( static :: $ psr0 [ $ prefix ] , $ base_dir ) ; } }
Adds a base directory for a namespace prefix using the PSR-0 standard.
@param string $prefix
@param string $base_dir
@param bool $prepend
Adds a base directory for a namespace prefix using the PSR - 0 standard .