thephpleague / flysystem

Abstraction for local and remote filesystems
https://flysystem.thephpleague.com
MIT License
13.37k stars 831 forks source link

Class League\Flysystem\AwsS3v3\AwsS3Adapter not found #1329

Closed that-guy-iain closed 3 years ago

that-guy-iain commented 3 years ago

Bug Report

Q A
BC Break no
Version 2.1

Summary

Using 2.1.1 of flysystem and 2.1.0 of this aws-s3 package. The class League\Flysystem\AwsS3v3\AwsS3Adapter is not found.

How to reproduce

I've created a demo repo that suffers from this problem. https://github.com/iaicam/flysystem-error this was tested using composer 2.1.3 on PHP 8.0.8 and 7.4

frankdejonge commented 3 years ago

The class you're trying to resolve has a casing mismatch in the adapter namespace segment:

-League\Flysystem\AwsS3v3\AwsS3Adapter
+League\Flysystem\AwsS3V3\AwsS3Adapter
that-guy-iain commented 3 years ago

Thanks for the response, however I updated the example because I had this error when using IntelliJ autocomplete so it seemed odd that would screw up the class name. The error still exists as far as I can see in https://github.com/iaicam/flysystem-error

that-guy-iain commented 3 years ago

Never mind, I suck at copying and pasting today.

frankdejonge commented 3 years ago

@MA812 the class should be League\Flysystem\AwsS3V3\AwsS3V3Adapter.

gnumoksha commented 3 years ago

some notes: