Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/./../app/.././../../finland.picotech.app/public_html/storage/../vendor/./phpoption/../laravel/../nikic/../telnyx/../brick/../unicodeveloper/../firebase/../ezyang/../maatwebsite/.././messagebird/./.././league/../league/flysystem/./src/UrlGeneration
الملفات الموجودة في هذا الـ Path:
.
..
ChainedPublicUrlGenerator.php
PrefixPublicUrlGenerator.php
PublicUrlGenerator.php
ShardedPrefixPublicUrlGenerator.php
TemporaryUrlGenerator.php
مشاهدة ملف: 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);
}
}