-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ability to use flysystem to manage uploaded files #5555
base: 4.x
Are you sure you want to change the base?
ability to use flysystem to manage uploaded files #5555
Conversation
…uel-tilleuls) This PR was merged into the 4.x branch. Discussion ---------- replace annotations by attributes in test entities The tests jobs of my previous PR (#5555) failed with errors : ``` The service "doctrine.orm.default_annotation_metadata_driver" has a dependency on a non-existent service doctrine.orm.metadata.annotation_reader". ``` This PR replaces annotations by PHP 8 attributes. This change allows tests to pass for PR #5555 (The actual code change in entities has been made by rector) Commits ------- f544918 replace annotations by attributes in test entities
139e66f
to
ea383f4
Compare
Anything is blocking this PR ? |
ea383f4
to
877bec7
Compare
I think it would be better to introduce an interface along with a simple default implementation to also allow different drivers/adapters. Then maybe it would even be enough to provide some documentation about how to provide your own implementation. |
Thank you @mahono for this advise. You're very right. |
Hi @emmanuel-tilleuls. Please are going to modify PR in the future, or it is OK for you if I take care of it? Thanks a lot. |
Hi @pdragun. I don't have much time to take care about this PR these days. Feel free to reuse the code. |
When using
ImageField
, the downloaded image goes to local file system. With this PR, easy admin user can configure aFilesystemOperator
in order to abstract file system and therefor choose where to put the images. It can bee anything supported by Flysystem such as S3 bucket or FTP directory.The
FilesystemOperator
instance has to be configured with the Flysystem Symfony bundleCloses #5544