@@ -14,7 +14,6 @@ comment:
1414In analogy to living style guides, this bundle also provides an optional shortcode guide. This guide can be used for
1515automated testing of your shortcodes as well.
1616
17-
1817## Installation
1918
2019As usual, install via [ composer] ( https://getcomposer.org/ ) and register the bundle in your application:
@@ -55,7 +54,6 @@ public function registerBundles()
5554}
5655```
5756
58-
5957## Usage
6058
6159### Defining your own shortcodes
@@ -161,7 +159,6 @@ And finally a twig template like this:
161159</div>
162160```
163161
164-
165162### Activating the Shortcode Guide
166163
167164The optional shortcode guide is a controller providing an overview page of the configured shortcodes and a detail page
@@ -218,7 +215,6 @@ Finally, enrich your shortcode tags with description and example attributes for
218215With the route prefix defined as above, call ``` /shortcodes/ ``` to get the list of shortcodes and follow the links to the
219216detail pages.
220217
221-
222218### Configuration
223219
224220In most cases, the default values should work fine. But you might want to configure something else, e.g. if the default
@@ -294,7 +290,6 @@ final class ImageTest extends ShortcodeTest
294290}
295291` ` `
296292
297-
298293# # Logging
299294
300295When something goes wrong with the resolving of a shortcode, maybe you not only want to know which shortcode with
@@ -303,9 +298,7 @@ that embedded the shortcode.
303298
304299This is tricky is you embed your shortcode controllers via ESI, as the ESI subrequest is in Symfony terms a master
305300request, preventing you from getting your answer from RequestStack::getMasterRequest(). Hence, the
306- ` EmbedShortcodeHandler` logs with the default monolog handler which controller it will call to resolve the shortcode.
307- You can overwrite the `EmbedShortcodeHandler`'s logger, e.g. if you want to change the channel, in the service
308- definition of your shortcode :
301+ ` EmbedShortcodeHandler` logs this information in the `shortcode` channel.
309302
310303` ` ` xml
311304<!-- src/AppBundle/Resources/config/shortcodes.xml -->
@@ -323,12 +316,11 @@ definition of your shortcode:
323316</container>
324317` ` `
325318
326-
327319# # Credits, Copyright and License
328320
329321This bundle was started at webfactory GmbH, Bonn.
330322
331- - <http ://www.webfactory.de>
332- - <http ://twitter.com/webfactory>
323+ - <https ://www.webfactory.de>
324+ - <https ://twitter.com/webfactory>
333325
334- Copyright 2018 webfactory GmbH, Bonn. Code released under [the MIT license](LICENSE).
326+ Copyright 2018-2021 webfactory GmbH, Bonn. Code released under [the MIT license](LICENSE).
0 commit comments