Closed Thomerdos closed 1 year ago
I found the issue, the mount option was missing under the filesystem...
filesystems:
s3:
mount: s3
adapter: default_adapter
Thanks for posting the solution @Thomerdos
I found the issue, the mount option was missing under the filesystem...
filesystems: s3: mount: s3 adapter: default_adapter
I struggled on my end because it was not clear to me that the mount
value (s3) has to be the same asthe identifier of the filesystem (s3). I tried initially to use another value (like s3_mount) to avoid confusion in my code but that was not working.
Really unclear to me what the "mount" parameter does and how it works. Hopefully, this helps someone else
Bug Report
Summary
I'm trying to use a filesystem with oneup/flysystem-bundle but the filesystem service is not found.
Current behavior
I'm getting the following error when uploading :
Service "oneup_flysystem.s3_filesystem" not found: the container inside "Symfony\Component\DependencyInjection\Argument\ServiceLocator" is a smaller service locator that is empty...
How to reproduce
This is my configuration :
The s3_filesystem service has this configuration :
I searched a lot but found nothing relevant, I don't understand why the service locator is empty. I tried a debug:container command but didn't see anything special. I also tried to downgrade to version 1.x but I had the same issue.
Edit : I checked the source code and saw the RegisterFlysystemRegistryPass and VichUploaderBundle classes but wasn't able to dump anything...
Expected behavior
Being able to use the filesystem correctly. I'm not quite sure if it is a vichuploaderbundle issue or a misconfiguration.
Thanks for your help,