Файл: vendor/league/flysystem/src/UrlGeneration/PrefixPublicUrlGenerator.php
Строк: 20
<?php
declare(strict_types=1);
namespace LeagueFlysystemUrlGeneration;
use LeagueFlysystemConfig;
use LeagueFlysystemPathPrefixer;
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);
}
}