Unbundle AWS / Google Cloud Storage adapters #3361
Closed
keulinho
started this conversation in
RFC / Proposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Effort
Low
Description
For now, shopware has a hard requirement on both AWS S3 client and Google cloud client and the Flysystem adapter libraries, as we support those remote file storages by default. It is unlikely that a given project uses both storages, and there might also be projects that are totally fine with only the local storage, so those dependencies are not needed in that case.
We want to unbundle those adapters, so they have to be required in every project that actually uses one of those storages.
Benefits
We limit our file system footprint and only install the dependencies that are actually needed.
Break strategy
Projects have to require the adapters for their concrete storages themselfe, we can suggest the needed dependencies over composer suggest.
Additionally, we might look into Symfony flex and if we can automatically require the correct dependencies over the flex setup.
Beta Was this translation helpful? Give feedback.
All reactions