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).
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).