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;
    }