|
6 | 6 | <services> |
7 | 7 |
|
8 | 8 | <!-- Definition of a Shortcode HandlerContainer instance. --> |
9 | | - <service id="webfactory.shortcode.handler_container" class="Thunder\Shortcode\HandlerContainer\HandlerContainer"> |
10 | | - </service> |
| 9 | + <service id="Thunder\Shortcode\HandlerContainer\HandlerContainer"/> |
11 | 10 |
|
12 | 11 | <!-- Definition of a Shortcode RegularParser instance. --> |
13 | | - <service id="webfactory.shortcode.regular_parser" class="Thunder\Shortcode\Parser\RegularParser"> |
14 | | - </service> |
| 12 | + <service id="Thunder\Shortcode\Parser\RegularParser"/> |
15 | 13 |
|
16 | 14 | <!-- Definition of a Shortcode Processor instance. --> |
17 | | - <service id="webfactory.shortcode.processor" class="Thunder\Shortcode\Processor\Processor"> |
18 | | - <argument type="service" id="webfactory.shortcode.regular_parser" /> |
19 | | - <argument type="service" id="webfactory.shortcode.handler_container" /> |
| 15 | + <service id="Thunder\Shortcode\Processor\Processor"> |
| 16 | + <argument type="service" id="Thunder\Shortcode\Parser\RegularParser" /> |
| 17 | + <argument type="service" id="Thunder\Shortcode\HandlerContainer\HandlerContainer" /> |
20 | 18 | </service> |
21 | 19 |
|
22 | 20 | <!-- Definition of a Shortcode EventContainer instance. --> |
23 | | - <service id="webfactory.shortcode.event_container" class="Thunder\Shortcode\EventContainer\EventContainer"> |
| 21 | + <service id="Thunder\Shortcode\EventContainer\EventContainer"> |
24 | 22 | <!-- Event handler that removes <p>...</p> tag that directly wrap shortcodes. --> |
25 | 23 | <call method="addListener"> |
26 | 24 | <argument type="constant">\Thunder\Shortcode\Events::REPLACE_SHORTCODES</argument> |
|
31 | 29 | </service> |
32 | 30 |
|
33 | 31 | <!-- Base definition for the EmbedForShortcodeHandler with esi renderer. --> |
34 | | - <service abstract="true" id="webfactory.shortcode.embed_esi_for_shortcode_handler" class="Webfactory\ShortcodeBundle\Handler\EmbeddedShortcodeHandler" lazy="true"> |
| 32 | + <service abstract="true" id="Webfactory\ShortcodeBundle\Handler\EmbeddedShortcodeHandler.esi" class="Webfactory\ShortcodeBundle\Handler\EmbeddedShortcodeHandler" lazy="true"> |
35 | 33 | <argument type="service" id="fragment.handler"/> |
36 | 34 | <argument><!-- Controller name placeholder argument --></argument> |
37 | 35 | <argument>esi</argument> |
38 | 36 | <argument type="service" id="request_stack" /> |
39 | 37 | <argument type="service" id="logger" on-invalid="null" /> |
40 | 38 | </service> |
41 | 39 |
|
| 40 | + <!-- alias for BC --> |
| 41 | + <service id="webfactory.shortcode.embed_esi_for_shortcode_handler" alias="Webfactory\ShortcodeBundle\Handler\EmbeddedShortcodeHandler.esi"/> |
| 42 | + |
42 | 43 | <!-- Base definition for the EmbedForShortcodeHandler with inline renderer. --> |
43 | | - <service abstract="true" id="webfactory.shortcode.embed_inline_for_shortcode_handler" class="Webfactory\ShortcodeBundle\Handler\EmbeddedShortcodeHandler" lazy="true"> |
| 44 | + <service abstract="true" id="Webfactory\ShortcodeBundle\Handler\EmbeddedShortcodeHandler.inline" class="Webfactory\ShortcodeBundle\Handler\EmbeddedShortcodeHandler" lazy="true"> |
44 | 45 | <argument type="service" id="fragment.handler"/> |
45 | 46 | <argument><!-- Controller name placeholder argument --></argument> |
46 | 47 | <argument>inline</argument> |
47 | 48 | <argument type="service" id="request_stack" /> |
48 | 49 | <argument type="service" id="logger" on-invalid="null" /> |
49 | 50 | </service> |
50 | 51 |
|
| 52 | + <!-- alias for BC --> |
| 53 | + <service id="webfactory.shortcode.embed_inline_for_shortcode_handler" alias="Webfactory\ShortcodeBundle\Handler\EmbeddedShortcodeHandler.inline"/> |
| 54 | + |
51 | 55 | <!-- Twig extension providing the |shortcodes filter. The content will be passed to the Shortcode Processor. --> |
52 | 56 | <service id="Webfactory\ShortcodeBundle\Twig\ShortcodeExtension" class="Webfactory\ShortcodeBundle\Twig\ShortcodeExtension"> |
53 | | - <argument type="service" id="webfactory.shortcode.processor"/> |
54 | | - <argument type="service" id="webfactory.shortcode.event_container"/> |
| 57 | + <argument type="service" id="Thunder\Shortcode\Processor\Processor"/> |
| 58 | + <argument type="service" id="Thunder\Shortcode\EventContainer\EventContainer"/> |
55 | 59 | <tag name="twig.extension"/> |
56 | 60 | </service> |
57 | 61 |
|
|
0 commit comments