PHP 8.3.31
Preview: PrefixPublicUrlGenerator.php Size: 499 B
/home/getspomw/royalsquad.us/vendor/league/flysystem/src/UrlGeneration/PrefixPublicUrlGenerator.php

<?php

declare(strict_types=1);

namespace League\Flysystem\UrlGeneration;

use League\Flysystem\Config;
use League\Flysystem\PathPrefixer;

class PrefixPublicUrlGenerator implements PublicUrlGenerator
{
    private PathPrefixer $prefixer;

    public function __construct(string $urlPrefix)
    {
        $this->prefixer = new PathPrefixer($urlPrefix, '/');
    }

    public function publicUrl(string $path, Config $config): string
    {
        return $this->prefixer->prefixPath($path);
    }
}

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
747 B lrw-rw-rw- 2025-09-17 06:53:04
Edit Download
499 B lrw-rw-rw- 2025-09-17 06:53:04
Edit Download
313 B lrw-rw-rw- 2025-09-17 06:53:04
Edit Download
956 B lrw-rw-rw- 2025-09-17 06:53:04
Edit Download
377 B lrw-rw-rw- 2025-09-17 06:53:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).