Skip to content

Upgrading league/flysystem 2 to 3

Unknown2.5.0 → 3.36.0

Fetching 80 releases from GitHub…0 / 80
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

PHP requirement changed in 3.0.0: ^7.2 || ^8.0 → ^8.0.2.

Adds league/flysystem-local ^3.0.0.

Generated by DepDelta from published PHP source. Not mixed with prose notes.

  • removed: static method UnableToCheckFileExistence.forLocation(string $path, Throwable $exception = …): UnableToCheckFileExistence
  • changed: class UnableToCheckFileExistence extends RuntimeException implements FilesystemOperationFailed → class UnableToCheckFileExistence extends UnableToCheckExistence
  • changed: constructor Filesystem(FilesystemAdapter $adapter, array $config = …, PathNormalizer $pathNormalizer = …) → constructor Filesystem(FilesystemAdapter $adapter, array $config = …, ?PathNormalizer $pathNormalizer = …, ?PublicUrlGenerator $publicUrlGenerator = …, ?TemporaryUrlGenerator $temporaryUrlGenerator = …)
  • changed: constructor MountManager(array $filesystems = …) → constructor MountManager(array $filesystems = …, array $config = …)
  • changed: method DirectoryAttributes.withPath(string $path): StorageAttributes → method DirectoryAttributes.withPath(string $path): self
  • changed: method FileAttributes.withPath(string $path): StorageAttributes → method FileAttributes.withPath(string $path): self
  • changed: method MountManager.visibility(string $location): string → method MountManager.visibility(string $path): string
  • changed: static method DirectoryAttributes.fromArray(array $attributes): StorageAttributes → static method DirectoryAttributes.fromArray(array $attributes): self
  • changed: static method FileAttributes.fromArray(array $attributes): StorageAttributes → static method FileAttributes.fromArray(array $attributes): self
  • changed: static method UnableToCopyFile.fromLocationTo(string $sourcePath, string $destinationPath, Throwable $previous = …): UnableToCopyFile → static method UnableToCopyFile.fromLocationTo(string $sourcePath, string $destinationPath, ?Throwable $previous = …): UnableToCopyFile
  • changed: static method UnableToCreateDirectory.atLocation(string $dirname, string $errorMessage = …): UnableToCreateDirectory → static method UnableToCreateDirectory.atLocation(string $dirname, string $errorMessage = …, ?Throwable $previous = …): UnableToCreateDirectory
  • changed: static method UnableToDeleteDirectory.atLocation(string $location, string $reason = …, Throwable $previous = …): UnableToDeleteDirectory → static method UnableToDeleteDirectory.atLocation(string $location, string $reason = …, ?Throwable $previous = …): UnableToDeleteDirectory
  • changed: static method UnableToDeleteFile.atLocation(string $location, string $reason = …, Throwable $previous = …): UnableToDeleteFile → static method UnableToDeleteFile.atLocation(string $location, string $reason = …, ?Throwable $previous = …): UnableToDeleteFile
  • changed: static method UnableToMoveFile.fromLocationTo(string $sourcePath, string $destinationPath, Throwable $previous = …): UnableToMoveFile → static method UnableToMoveFile.fromLocationTo(string $sourcePath, string $destinationPath, ?Throwable $previous = …): UnableToMoveFile
  • changed: static method UnableToReadFile.fromLocation(string $location, string $reason = …, Throwable $previous = …): UnableToReadFile → static method UnableToReadFile.fromLocation(string $location, string $reason = …, ?Throwable $previous = …): UnableToReadFile
  • changed: static method UnableToRetrieveMetadata.create(string $location, string $type, string $reason = …, Throwable $previous = …): self → static method UnableToRetrieveMetadata.create(string $location, string $type, string $reason = …, ?Throwable $previous = …): self
  • changed: static method UnableToRetrieveMetadata.fileSize(string $location, string $reason = …, Throwable $previous = …): self → static method UnableToRetrieveMetadata.fileSize(string $location, string $reason = …, ?Throwable $previous = …): self
  • changed: static method UnableToRetrieveMetadata.lastModified(string $location, string $reason = …, Throwable $previous = …): self → static method UnableToRetrieveMetadata.lastModified(string $location, string $reason = …, ?Throwable $previous = …): self
  • changed: static method UnableToRetrieveMetadata.mimeType(string $location, string $reason = …, Throwable $previous = …): self → static method UnableToRetrieveMetadata.mimeType(string $location, string $reason = …, ?Throwable $previous = …): self
  • changed: static method UnableToRetrieveMetadata.visibility(string $location, string $reason = …, Throwable $previous = …): self → static method UnableToRetrieveMetadata.visibility(string $location, string $reason = …, ?Throwable $previous = …): self
  • changed: static method UnableToSetVisibility.atLocation(string $filename, string $extraMessage = …, Throwable $previous = …): self → static method UnableToSetVisibility.atLocation(string $filename, string $extraMessage = …, ?Throwable $previous = …): self
  • changed: static method UnableToWriteFile.atLocation(string $location, string $reason = …, Throwable $previous = …): UnableToWriteFile → static method UnableToWriteFile.atLocation(string $location, string $reason = …, ?Throwable $previous = …): UnableToWriteFile
  • added: abstract class DecoratedAdapter implements FilesystemAdapter
  • added: class ResolveIdenticalPathConflict
  • added: class UnableToCheckDirectoryExistence extends UnableToCheckExistence
  • added: class UnableToCheckExistence extends RuntimeException implements FilesystemOperationFailed
  • added: const Config.OPTION_COPY_IDENTICAL_PATH
  • added: const Config.OPTION_MOVE_IDENTICAL_PATH
  • added: const Config.OPTION_RETAIN_VISIBILITY
  • added: const FilesystemOperationFailed.OPERATION_DIRECTORY_EXISTS
  • added: const FilesystemOperationFailed.OPERATION_EXISTENCE_CHECK
  • added: const FilesystemOperationFailed.OPERATION_LIST_CONTENTS
  • added: const ResolveIdenticalPathConflict.FAIL
  • added: const ResolveIdenticalPathConflict.IGNORE
  • added: const ResolveIdenticalPathConflict.TRY
  • added: constructor DecoratedAdapter(FilesystemAdapter $adapter)
  • added: constructor UnableToCheckExistence(string $message = …, int $code = …, ?Throwable $previous = …)
  • added: constructor UnableToGeneratePublicUrl(string $reason, string $path, ?Throwable $previous = …)
  • added: constructor UnableToGenerateTemporaryUrl(string $reason, string $path, ?Throwable $previous = …)
  • added: constructor UnableToProvideChecksum(string $reason, string $path, ?Throwable $previous = …)
  • added: constructor WhitespacePathNormalizer(bool $allowRelativePathTraversal = …)
  • added: final class ChecksumAlgoIsNotSupported extends InvalidArgumentException
  • added: final class UnableToGeneratePublicUrl extends RuntimeException implements FilesystemException
  • added: final class UnableToGenerateTemporaryUrl extends RuntimeException implements FilesystemException
  • added: final class UnableToListContents extends RuntimeException implements FilesystemOperationFailed
  • added: final class UnableToProvideChecksum extends RuntimeException implements FilesystemException
  • added: interface ChecksumProvider
  • added: method CalculateChecksumFromStream.readStream(string $path)
  • added: method ChecksumProvider.checksum(string $path, Config $config): string
  • added: method Config.toArray(): array
  • added: method Config.withSetting(string $property, mixed $setting): Config
  • added: method Config.withoutSettings(string ...$settings): Config
  • added: method DecoratedAdapter.copy(string $source, string $destination, Config $config): void
  • added: method DecoratedAdapter.createDirectory(string $path, Config $config): void
  • added: method DecoratedAdapter.delete(string $path): void
  • added: method DecoratedAdapter.deleteDirectory(string $path): void
  • added: method DecoratedAdapter.directoryExists(string $path): bool
  • added: method DecoratedAdapter.fileExists(string $path): bool
  • added: method DecoratedAdapter.fileSize(string $path): FileAttributes
  • added: method DecoratedAdapter.lastModified(string $path): FileAttributes
  • added: method DecoratedAdapter.listContents(string $path, bool $deep): iterable
  • added: method DecoratedAdapter.mimeType(string $path): FileAttributes
  • added: method DecoratedAdapter.move(string $source, string $destination, Config $config): void
  • added: method DecoratedAdapter.read(string $path): string
  • added: method DecoratedAdapter.readStream(string $path)
  • added: method DecoratedAdapter.setVisibility(string $path, string $visibility): void
  • added: method DecoratedAdapter.visibility(string $path): FileAttributes
  • added: method DecoratedAdapter.write(string $path, string $contents, Config $config): void
  • added: method DecoratedAdapter.writeStream(string $path, $contents, Config $config): void
  • added: method Filesystem.checksum(string $path, array $config = …): string
  • added: method Filesystem.directoryExists(string $location): bool
  • added: method Filesystem.has(string $location): bool
  • added: method Filesystem.publicUrl(string $path, array $config = …): string
  • added: method Filesystem.temporaryUrl(string $path, DateTimeInterface $expiresAt, array $config = …): string
  • added: method FilesystemAdapter.directoryExists(string $path): bool
  • added: method FilesystemReader.directoryExists(string $location): bool
  • added: method FilesystemReader.has(string $location): bool
  • added: method MountManager.checksum(string $path, array $config = …): string
  • added: method MountManager.dangerouslyMountFilesystems(string $key, FilesystemOperator $filesystem): void
  • added: method MountManager.directoryExists(string $location): bool
  • added: method MountManager.extend(array $filesystems, array $config = …): MountManager
  • added: method MountManager.has(string $location): bool
  • added: method MountManager.publicUrl(string $path, array $config = …): string
  • added: method MountManager.temporaryUrl(string $path, DateTimeInterface $expiresAt, array $config = …): string
  • added: method UnableToCheckDirectoryExistence.operation(): string
  • added: method UnableToCheckExistence.operation(): string
  • added: method UnableToCreateDirectory.reason(): string
  • added: method UnableToListContents.operation(): string
  • added: protected property DecoratedAdapter.adapter: FilesystemAdapter
  • added: static method UnableToCheckExistence.forLocation(string $path, ?Throwable $exception = …): static
  • added: static method UnableToCopyFile.because(string $reason, string $sourcePath, string $destinationPath): UnableToCopyFile
  • added: static method UnableToCopyFile.sourceAndDestinationAreTheSame(string $source, string $destination): UnableToCopyFile
  • added: static method UnableToGeneratePublicUrl.dueToError(string $path, Throwable $exception): static
  • added: static method UnableToGeneratePublicUrl.noGeneratorConfigured(string $path, string $extraReason = …): static
  • added: static method UnableToGenerateTemporaryUrl.dueToError(string $path, Throwable $exception): static
  • added: static method UnableToGenerateTemporaryUrl.noGeneratorConfigured(string $path, string $extraReason = …): static
  • added: static method UnableToListContents.atLocation(string $location, bool $deep, Throwable $previous): UnableToListContents
  • added: static method UnableToMoveFile.because(string $reason, string $sourcePath, string $destinationPath): UnableToMoveFile
  • added: static method UnableToMoveFile.sourceAndDestinationAreTheSame(string $source, string $destination): UnableToMoveFile
  • added: trait CalculateChecksumFromStream
  • removed: class LocalFilesystemAdapter implements FilesystemAdapter
  • removed: const LocalFilesystemAdapter.DISALLOW_LINKS
  • removed: const LocalFilesystemAdapter.SKIP_LINKS
  • removed: constructor LocalFilesystemAdapter(string $location, VisibilityConverter $visibility = …, int $writeFlags = …, int $linkHandling = …, MimeTypeDetector $mimeTypeDetector = …)
  • removed: method LocalFilesystemAdapter.copy(string $source, string $destination, Config $config): void
  • removed: method LocalFilesystemAdapter.createDirectory(string $path, Config $config): void
  • removed: method LocalFilesystemAdapter.delete(string $path): void
  • removed: method LocalFilesystemAdapter.deleteDirectory(string $prefix): void
  • removed: method LocalFilesystemAdapter.fileExists(string $location): bool
  • removed: method LocalFilesystemAdapter.fileSize(string $path): FileAttributes
  • removed: method LocalFilesystemAdapter.lastModified(string $path): FileAttributes
  • removed: method LocalFilesystemAdapter.listContents(string $path, bool $deep): iterable
  • removed: method LocalFilesystemAdapter.mimeType(string $path): FileAttributes
  • removed: method LocalFilesystemAdapter.move(string $source, string $destination, Config $config): void
  • removed: method LocalFilesystemAdapter.read(string $path): string
  • removed: method LocalFilesystemAdapter.readStream(string $path)
  • removed: method LocalFilesystemAdapter.setVisibility(string $path, string $visibility): void
  • removed: method LocalFilesystemAdapter.visibility(string $path): FileAttributes
  • removed: method LocalFilesystemAdapter.write(string $path, string $contents, Config $config): void
  • removed: method LocalFilesystemAdapter.writeStream(string $path, $contents, Config $config): void
  • removed: protected method LocalFilesystemAdapter.deleteFileInfoObject(SplFileInfo $file): bool
  • removed: protected method LocalFilesystemAdapter.ensureDirectoryExists(string $dirname, int $visibility): void
  • added: class PrefixPublicUrlGenerator implements PublicUrlGenerator
  • added: constructor ChainedPublicUrlGenerator(iterable $generators)
  • added: constructor PrefixPublicUrlGenerator(string $urlPrefix)
  • added: constructor ShardedPrefixPublicUrlGenerator(array $prefixes)
  • added: final class ChainedPublicUrlGenerator implements PublicUrlGenerator
  • added: final class ShardedPrefixPublicUrlGenerator implements PublicUrlGenerator
  • added: interface PublicUrlGenerator
  • added: interface TemporaryUrlGenerator
  • added: method ChainedPublicUrlGenerator.publicUrl(string $path, Config $config): string
  • added: method PrefixPublicUrlGenerator.publicUrl(string $path, Config $config): string
  • added: method PublicUrlGenerator.publicUrl(string $path, Config $config): string
  • added: method ShardedPrefixPublicUrlGenerator.publicUrl(string $path, Config $config): string
  • added: method TemporaryUrlGenerator.temporaryUrl(string $path, DateTimeInterface $expiresAt, Config $config): string