public function addGeneratorPath($prefix, $path)
    {
        $path = realpath($path);
        $success = false;
        if ($path && !array_key_exists($prefix, $this->generatorPaths)) {
            $this->generatorPaths[$prefix] = $path;
            $success = true;
        }

        return $success;
    }
public function addGeneratorPath($prefix, $path)
    {
        $path = realpath($path);
        $success = false;
        if ($path && !array_key_exists($prefix, $this->generatorPaths)) {
            $this->generatorPaths[$prefix] = $path;
            $success = true;
        }

        return $success;
    }
public function addGeneratorPath ( $ prefix , $ path ) { $ path = realpath ( $ path ) ; $ success = false ; if ( $ path && ! array_key_exists ( $ prefix , $ this -> generatorPaths ) ) { $ this -> generatorPaths [ $ prefix ] = $ path ; $ success = true ; } return $ success ; }
Add a search path for custom generators.

@param string $prefix Namespace prefix used by generator classes
in this path.
@param  string  $path Directory path containing generator classes.
@return boolean Returns true on success, false otherwise.
Add a search path for custom generators .