How to implement a simple custom data-loader using symfony and the liip_imagine-bundle?

I’m finding the documentation quite lacking. It doesn’t explain things properly and since I’m not really a PHP developer I’m not sure how to go about this.

Currently the web application is using the default data loader and resolver than comes with LiipImagine. I’m trying to refactor a custom data loader that will load images from an AWS s3 bucket, but the documentation describes using an argument: %liip_imagine.formats% which throws an error when I try to clear the cache. The documentation does not describe what this argument is supposed to be or how I can implement it.

Error:

 The service "imagine.data.loader.my_custom" has a dependency on a non-existent parameter "lii
 p_imagine.formats". Did you mean this: "liip_imagine.gd.class"?

All help is appreciated.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *