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

Overriding configuration for specific env is broken #1534

Closed Seb33300 closed 1 year ago

Seb33300 commented 1 year ago

I am trying to use the when@dev syntax to override the config for a specific env, but this seems to not work as expected.

For example:

liip_imagine:
    driver: "imagick"

    twig:
        mode: lazy

    loaders:
        default:
            filesystem:
                locator: filesystem_insecure

    resolvers:
        default:
            web_path:
                cache_prefix: cache

when@dev:
    liip_imagine:
        driver: "gd"

On dev environment the resolver option defined previously is no longer taken in account.

dbu commented 1 year ago

the when@dev syntax is part of symfony itself, not of the bundle. i would expect it to behave the same as when you do separate configuration files that you load depending on the environment.

have you tried clearing the cache and such things?

if it still does not work, can you please check in general symfony help?