Gregwar / ImageBundle

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

catch the \InvalidArgumentException and use config to continue. #100

Closed johnnyborg closed 7 years ago

johnnyborg commented 8 years ago

The Symfony FileLocator or Kernel (locateFile) might throw an InvalidArgumentException when a file is not found or the path is wrong. I think depending when configuration states no exceptions the exception must be caught and a fallback should be set (if any).

johnnyborg commented 8 years ago

@Gregwar can you give your thoughts on this PR?

Gregwar commented 7 years ago

Sorry for the delay, and thanks for contributing