Init du module DHL (sur la base du module Colissimo)
This commit is contained in:
40
local/modules/DHL/Config/config.xml
Normal file
40
local/modules/DHL/Config/config.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?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 class="DHL\Loop\Price" name="dhl"/>
|
||||
<loop class="DHL\Loop\CheckRightsLoop" name="dhl.check.rights" />
|
||||
<loop class="DHL\Loop\NotSendLoop" name="dhl.notsend.loop" />
|
||||
</loops>
|
||||
|
||||
<forms>
|
||||
<!-- <form name="dhl.freeshipping.form" class="DHL\Form\FreeShipping" />-->
|
||||
<!-- <form name="dhl.export.form" class="DHL\Form\Export" />-->
|
||||
<form name="dhl.configuration" class="DHL\Form\Configuration" />
|
||||
</forms>
|
||||
|
||||
<services>
|
||||
<service id="send.dhl.mail" class="DHL\Listener\SendMail">
|
||||
<argument type="service" id="thelia.parser" />
|
||||
<argument type="service" id="mailer"/>
|
||||
<tag name="kernel.event_subscriber"/>
|
||||
</service>
|
||||
</services>
|
||||
|
||||
<services>
|
||||
<service id="area.deleted.listener" class="DHL\EventListener\AreaDeletedListener" scope="request">
|
||||
<tag name="kernel.event_subscriber"/>
|
||||
<argument type="service" id="request" />
|
||||
</service>
|
||||
</services>
|
||||
|
||||
<hooks>
|
||||
<hook id="dhl.hook" class="DHL\Hook\HookManager">
|
||||
<tag name="hook.event_listener" event="module.configuration" type="back" method="onModuleConfiguration" />
|
||||
<tag name="hook.event_listener" event="module.config-js" type="back" templates="render:assets/js/module-configuration-js.html" />
|
||||
</hook>
|
||||
</hooks>
|
||||
</config>
|
||||
Reference in New Issue
Block a user