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

<?php

declare(strict_types=1);

namespace League\Flysystem\UrlGeneration;

use League\Flysystem\Config;
use League\Flysystem\UnableToGeneratePublicUrl;

final class ChainedPublicUrlGenerator implements PublicUrlGenerator
{
    /**
     * @param PublicUrlGenerator[] $generators
     */
    public function __construct(private iterable $generators)
    {
    }

    public function publicUrl(string $path, Config $config): string
    {
        foreach ($this->generators as $generator) {
            try {
                return $generator->publicUrl($path, $config);
            } catch (UnableToGeneratePublicUrl) {
            }
        }

        throw new UnableToGeneratePublicUrl('No supported public url generator found.', $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).