Closed hepeichun closed 3 months ago
# vendor/league/flysystem/src/Filesystem.php public function temporaryUrl(string $path, DateTimeInterface $expiresAt, array $config = []): string { $generator = $this->temporaryUrlGenerator ?? $this->adapter; if ($generator instanceof TemporaryUrlGenerator) { return $generator->temporaryUrl( $this->pathNormalizer->normalizePath($path), $expiresAt, $this->config->extend($config) ); } throw UnableToGenerateTemporaryUrl::noGeneratorConfigured($path); }
这里的$generator instanceof TemporaryUrlGenerator会检查
$generator instanceof TemporaryUrlGenerator
这里的
$generator instanceof TemporaryUrlGenerator
会检查