Skip to content

Releases: webfactory/WebfactoryShortcodeBundle

Catch all errors thrown when generating shortcode replacements

17 May 14:10
e47f44a

Choose a tag to compare

Catch all errors thrown when generating shortcode replacements (#17)

When a controller that is used to generate shortcode replacements throws an Exception, this exeception will currently fall-through.

I think this kind of errors should be contained, and we should try to display the shortcode as unchanged as possible, as if we had not attempted to resolve it in the first place (of course, logging the problem).

Co-authored-by: Fabian Schmick <fs@webfactory.de>

Avoid passing the current request into controllers resolving shortcodes

26 Oct 14:12
bf149e3

Choose a tag to compare

See #15 – this never worked for ESI-based shortcodes, at least not with Symfony ^4.0.

For inline-based shortcodes you need to review your substitution-generating controllers and check whether they depend on the request Request attribute.

Additionally, the default logging level and channel have been changed, see #5.

Fix Logging

26 Oct 06:19
849eb67

Choose a tag to compare

Only log the url if a request exists

Fix regressions and missing dependencies introduced in v1.4.0

15 Jul 21:39
80f789b

Choose a tag to compare

Oh my! Had we run the tests automatically, we'd have catched this earlier.

First release

29 Jul 10:09
831def6

Choose a tag to compare

Now supporting shortcodes in shortcodes.