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

Call to undefined method Symfony\Config\LiipImagine\ResolversConfig::webPath() #1533

Closed stephanvierkant closed 10 months ago

stephanvierkant commented 1 year ago

Preconditions

  1. Bundle version 2.12.0
  2. Symfony 6.3.5

Steps to reproduce

  1. Use PHP configuration:
return static function (LiipImagineConfig $config, ContainerConfigurator $containerConfigurator) : void {
    $config->twig()->mode('lazy');

    $config->resolvers('default')
        ->webPath()
        ->webRoot('%kernel.project_dir%/public')
        ->cachePrefix('media/cache')
    ;
    // ...
});
  1. Run bin/console cache:clear

Actual result

Uncaught Error: Call to undefined method Symfony\Config\LiipImagine\ResolversConfig::webPath()

I'm not sure if this is an issue with this bundle or a Symfony bug so I'm wondering if more people have this issue. See https://github.com/symfony/symfony/issues/50713 for a similar issue.

dbu commented 10 months ago

did you ever find out what happens here? is it a symfony bug or something we should fix in the imagine bundle?

stephanvierkant commented 10 months ago

Still no idea, but it isn't related to this bundle. So this issue can be closed.