liip / LiipImagineBundle

Symfony Bundle to assist in image manipulation using the imagine library
http://liip.ch
MIT License
1.66k stars 378 forks source link

Attempted to load class "AmazonS3" from the global namespace #1536

Closed vasilvestre closed 10 months ago

vasilvestre commented 1 year ago

Preconditions

  1. 2.11.*
  2. PHP 8.1

Steps to reproduce

  1. Follow tutorial https://symfony.com/bundles/LiipImagineBundle/current/cache-resolver/aws_s3.html

Expected result

  1. I expect no error from a compiler pass.

Actual result

  1. [Screenshot, logs] image
dbu commented 11 months ago

afaik this only happens if you configure aws, not by default. i agree that the error could be nicer - for example the configuration class or DI extension could check for the existence of the optional dependency.

do you want to do a pull request to improve this?

vasilvestre commented 10 months ago

I now have the project working, I can't remember the issue and my issue miss details. Feels free to reopen if anyone encounter the issue !