文件操作 - ChainedPublicUrlGenerator.php
返回文件管理
返回主菜单
删除本文件
文件: /opt/cpanel/ea-wappspector/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); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件