File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/league/flysystem/src/UrlGeneration
Upload
[..]
ChainedPublicUrlGenerator.php (747 B)
Edit
Rename
Del
PrefixPublicUrlGenerator.php (499 B)
Edit
Rename
Del
PublicUrlGenerator.php (313 B)
Edit
Rename
Del
TemporaryUrlGenerator.php (377 B)
Edit
Rename
Del
Edit: 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); } }
Simpan