KUJUNTI.ID MINISH3LL
Path : /var/www/html/moneyexchange/vendor/league/flysystem/src/UrlGeneration/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/moneyexchange/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);
    }
}

© KUJUNTI.ID