Gregwar / ImageBundle

Image manipulation bundle for Symfony 2
MIT License
195 stars 50 forks source link

Cache dir #95

Closed chandon closed 8 years ago

chandon commented 8 years ago

When using the bundle in a controller (with the default configuration in config.yml), the cache dir is located in ./web/cache But when using it from a Symfony Command, the cache dir is created in ./cache

I've try to change cache_dir in config.yml without success. It seems that the bundle is also using web_dir. I've tried things like :

gregwar_image:
    cache_dir: /tmp
    web_dir: /tmp

but it's not working from a Symfony Command. How to change the cache dir ?

chandon commented 8 years ago

My fault, i was not using the Bundle but directly the Image php class.