- Add package.json dependencies: jquery, jquery-ui, moment, daterangepicker, wavesurfer.js, air-datepicker - Create scripts/setup-vendor.js to copy npm packages to public/assets/vendor - Update view templates to use vendor paths instead of old /js/ or CDN URLs - Clean up legacy commented-out scripts in master layout
24 lines
499 B
PHP
24 lines
499 B
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);
|
|
}
|
|
}
|