public function register($namespace, $includePath)
    {
        if (array_key_exists($namespace, $this->includePaths)) {
            throw new \Exception("Error: Namespace '$namespace' is already registered!");
        }

        $this->includePaths[$namespace] = rtrim($includePath, DS) . DS;
    }
public function register($namespace, $includePath)
    {
        if (array_key_exists($namespace, $this->includePaths)) {
            throw new \Exception("Error: Namespace '$namespace' is already registered!");
        }

        $this->includePaths[$namespace] = rtrim($includePath, DS) . DS;
    }
public function register ( $ namespace , $ includePath ) { if ( array_key_exists ( $ namespace , $ this -> includePaths ) ) { throw new \ Exception ( "Error: Namespace '$namespace' is already registered!" ) ; } $ this -> includePaths [ $ namespace ] = rtrim ( $ includePath , DS ) . DS ; }
Register a determinated namespace and its include path to find it.

@param string $namespace namespace of a class given
@param string $includePath path where the class exists
Register a determinated namespace and its include path to find it .