Bug #101929
closedViewHelperInvoker should catch Exceptions allow the Site-Developer to handle or supress exceptions
0%
Description
The ViewHelperInvoker (\TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInvoker) should catch Exceptions allow the Site-Developer to handle or supress exceptions. This can be useful to supress exceptions for f.e. missing images, FAL, files (f:image etc.).
To archive that the ViewHelperInvoker should emit a Signal that developers can use to receive such Error-Events and giving them the ability to supress the actual Exception or implement custom rendering to replace the output of ViewHelpers.
So far I've extended/wrapped such core-viewhelpers to implement a more user-friendly handling of minor errors (like missing image or download files), replacing them with log-signal, user-friendly error-message, placeholder image and so on. This enshures the rest of the website works even if there is a stupid image missing.
This is not possible anymore due to the breaking change, that most of these ViewHelpers are now declared final class
. Site-Developers would have to maintain their 1:1 copy of these core-classes (instead of simply extending the logic). This isn't useful as this could also lead to core-fixes that won't apply there anymore.
So I think there must be a better solution to give developers the ability to handle this themselfe -- or keep the old Exception if they don't care about it.
I think at least implementing a signal-event should be no brain-breaker!