73 lines
2.8 KiB
XML
73 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<config xmlns="http://thelia.net/schema/dic/config"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://thelia.net/schema/dic/config http://thelia.net/schema/dic/config/thelia-1.0.xsd">
|
|
|
|
<loops>
|
|
<loop name="comment" class="Comment\Loop\CommentLoop" />
|
|
</loops>
|
|
|
|
<forms>
|
|
<form name="comment.add.form" class="Comment\Form\AddCommentForm" />
|
|
<form name="comment.abuse.form" class="Comment\Form\CommentAbuseForm" />
|
|
<form name="comment.configuration.form" class="Comment\Form\ConfigurationForm" />
|
|
<form name="admin.comment.modification.form" class="Comment\Form\CommentModificationForm" />
|
|
</forms>
|
|
|
|
<commands>
|
|
<!--
|
|
<command class="MyModule\Command\MySuperCommand" />
|
|
-->
|
|
</commands>
|
|
|
|
<services>
|
|
|
|
<service id="comment.action" class="Comment\Action\CommentAction" scope="request">
|
|
<argument type="service" id="thelia.translator" />
|
|
<argument type="service" id="thelia.parser" />
|
|
<argument type="service" id="mailer"/>
|
|
|
|
<tag name="kernel.event_subscriber"/>
|
|
</service>
|
|
|
|
<service id="comment.form.type.field.comment_id" class="Comment\Form\Field\CommentIdType">
|
|
<argument type="service" id="thelia.translator" />
|
|
<tag name="thelia.form.type" />
|
|
</service>
|
|
|
|
</services>
|
|
|
|
<!--
|
|
<exports>
|
|
|
|
</exports>
|
|
-->
|
|
|
|
<!--
|
|
<imports>
|
|
|
|
</imports>
|
|
-->
|
|
|
|
<hooks>
|
|
<!-- front -->
|
|
<hook id="comment.hook.front" class="Comment\Hook\FrontHook" scope="request">
|
|
<tag name="hook.event_listener" event="product.additional" method="onShowBlockComment" />
|
|
<tag name="hook.event_listener" event="content.main-bottom" method="onShowComment" />
|
|
<tag name="hook.event_listener" event="main.javascript-initialization" method="jsComment" />
|
|
</hook>
|
|
<!-- back -->
|
|
<hook id="comment.hook.back" class="Comment\Hook\BackHook" scope="request">
|
|
<tag name="hook.event_listener" event="module.configuration" type="back" />
|
|
<tag name="hook.event_listener" event="main.top-menu-tools" type="back" />
|
|
<tag name="hook.event_listener" event="main.footer-js" type="back" method="onMainFooterJs" />
|
|
<tag name="hook.event_listener" event="product.tab-content" type="back" method="onProductTabContent" />
|
|
<tag name="hook.event_listener" event="product.edit-js" type="back" method="onJsTabContent" />
|
|
<tag name="hook.event_listener" event="content.tab-content" type="back" method="onContentTabContent" />
|
|
<tag name="hook.event_listener" event="content.edit-js" type="back" method="onJsTabContent" />
|
|
</hook>
|
|
|
|
</hooks>
|
|
</config>
|