Added ThekliaLoop smarty plugin, and reorganized code a bit
This commit is contained in:
@@ -36,17 +36,29 @@
|
||||
<argument type="service" id="service_container"/>
|
||||
</service>
|
||||
|
||||
<service id="thelia.parser" class="Thelia\Core\Template\SmartyParser" scope="request">
|
||||
<!-- Parser configuration -->
|
||||
|
||||
<service id="thelia.parser" class="Thelia\Core\Template\Smarty\SmartyParser" scope="request">
|
||||
<argument type="service" id="request" />
|
||||
<argument type="service" id="event_dispatcher"/>
|
||||
</service>
|
||||
|
||||
<!-- Smarty parser plugins -->
|
||||
|
||||
<service id="smarty.plugin.assetic" class="Thelia\Core\Template\Smarty\Plugins\Assetic" >
|
||||
<tag name="thelia.parser.register_plugin"/>
|
||||
</service>
|
||||
|
||||
<service id="smarty.plugin.thelialoop" class="Thelia\Core\Template\Smarty\Plugins\TheliaLoop" scope="request">
|
||||
<tag name="thelia.parser.register_plugin"/>
|
||||
|
||||
<argument type="service" id="request" />
|
||||
<argument type="service" id="event_dispatcher"/>
|
||||
<call method="setLoopList">
|
||||
<argument>%tpex.loop%</argument>
|
||||
</call>
|
||||
</service>
|
||||
</service>
|
||||
|
||||
<service id="smarty.plugin.assetic" class="Thelia\Core\Template\Smarty\Plugins\Assetic" >
|
||||
<tag name="smarty.register_plugin"/>
|
||||
</service>
|
||||
|
||||
<service id="http_kernel" class="Thelia\Core\TheliaHttpKernel">
|
||||
<argument type="service" id="event_dispatcher" />
|
||||
|
||||
Reference in New Issue
Block a user