private function configureSlashPrefix(array $pieces): self
    {
        $first = array_shift($pieces);

        $pattern = sprintf('#^%s#', DIRECTORY_SEPARATOR);
        if (preg_match($pattern, $first)) {
            $this->prefix .= DIRECTORY_SEPARATOR;
        }

        return $this;
    }
private function configureSlashPrefix(array $pieces): self
    {
        $first = array_shift($pieces);

        $pattern = sprintf('#^%s#', DIRECTORY_SEPARATOR);
        if (preg_match($pattern, $first)) {
            $this->prefix .= DIRECTORY_SEPARATOR;
        }

        return $this;
    }
private function configureSlashPrefix ( array $ pieces ) : self { $ first = array_shift ( $ pieces ) ; $ pattern = sprintf ( '#^%s#' , DIRECTORY_SEPARATOR ) ; if ( preg_match ( $ pattern , $ first ) ) { $ this -> prefix .= DIRECTORY_SEPARATOR ; } return $ this ; }
Configura el normalizer para tratar con rutas absolutas

@param string[] $pieces

@return \PlanB\Type\Path\PathNormalizer
Configura el normalizer para tratar con rutas absolutas