-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Projects
Milestone
Relationships
Development
Select code repository
Activity
Lustmored commentedon Jun 21, 2021
Hi,
In Symfony with flysystem-bundle you'd just need to configure the service like this:
And then use it in
config/packages/flysystem.yaml
like any other:bastien70 commentedon Jun 25, 2021
I have a little trouble understanding.
Basically, my setup is as follows:
flysystem.yaml :
services.yaml:
liip_imagine.yaml:
So, if I understand, I should make this :
Add in services.yaml :
And add in flysystem.yaml :
? What about my other adapt regarding aws? And for the cache to be effective with liip_imagine?
weaverryan commentedon Jun 25, 2021
Hi there!
To adapt the code from @Lustmored to your app, I think it would look like this:
(this is the same that we have here: https://symfonycasts.com/screencast/symfony-uploads/cached-s3-filesystem#codeblock-1a69ab8273
flysystem.adapter.uploads_adapter
, which is your adapter service. So:cached_public_uploads_storage
I believe. You can now plug this into Liip:Yes, it IS complex :). This probably won't be quite right - I was reading from source code and typing here, but it should be close.
Cheers!
bastien70 commentedon Jun 29, 2021
Okay it works thanks !
@Lustmored Maybe could you upgrade 'psr/cache' to v2 ?
Update readme "Usage" section with summary based on @weaverryan comme…
Lustmored commentedon Jul 1, 2021
Thanks @weaverryan for great summary of usage. I must admit I'm not using this adapter in my main project so it was very helpful. I have updated README.
@bastien70 I have published 0.2.0 with only significant change being allowing psr/cache 1|2|3 👍
bastien70 commentedon Jul 1, 2021
Very good mens ! thank you both, everything is perfect now, and long live this super useful bundle! <3
laferte-tech commentedon Sep 9, 2021
Just to say thank you so much @weaverryan and @Lustmored for your work and help!
and one question:
this cache.app defined in cache.yaml
does it need to be defined like in your example ? (app: cache.adapter.apcu)
Or maybe should we assign it a special value?
Thanks a lot
yellow1912 commentedon Sep 30, 2022
Hello,
Sorry for asking a question in a closed issue, but I wonder if you can further explain the usage. For example, lets say I have an aws adapter, now I want to use the cached adapter for that aws adapter, how should I do it?
Do I define the aws adapter service separate and pass the bucket, and client option to it?