TwigSpreadsheetBundle
TwigSpreadsheetBundle copied to clipboard
DrawingWrapper fails when url is not founded
I use your bundle with DrawingWrapper tag to export products and their pictures (they are on the CDN). When the url of the picture is invalid, The following exception is thrown:
An exception has been thrown during the rendering of a template ("Warning: file_get_contents(https://gd3.alicdn.com/imgextra/i1/1741453808/TB20GGrIXmWBuNjSspdXXbugXXa_!!1741453808.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found ").
This is causes because the url is not founded. It may be a good idea to ignore URLs (keep blank cell) that could not save data or make it manageable (for example, passing a flag to throw or not throw an error)? Because now I have to pre-test the url for validity.