public function register($name, $path, $absolute = false)
    {
        if($path instanceof \Exedra\Path)
            return $this->pathRegistry[$name] = $path;

        $path = $absolute ? $path : $this->basePath.'/'.ltrim($path, '/\\');

        $this->pathRegistry[$name] = new static($path);

        return $this->pathRegistry[$name];
    }
public function register($name, $path, $absolute = false)
    {
        if($path instanceof \Exedra\Path)
            return $this->pathRegistry[$name] = $path;

        $path = $absolute ? $path : $this->basePath.'/'.ltrim($path, '/\\');

        $this->pathRegistry[$name] = new static($path);

        return $this->pathRegistry[$name];
    }
public function register ( $ name , $ path , $ absolute = false ) { if ( $ path instanceof \ Exedra \ Path ) return $ this -> pathRegistry [ $ name ] = $ path ; $ path = $ absolute ? $ path : $ this -> basePath . '/' . ltrim ( $ path , '/\\' ) ; $ this -> pathRegistry [ $ name ] = new static ( $ path ) ; return $ this -> pathRegistry [ $ name ] ; }
Register a new path for the given name and path
@param string $name
@param string $path
@param bool $absolute
@return \Exedra\Path
Register a new path for the given name and path