Commit du répertoire FedEx
This commit is contained in:
38
local/modules/FedEx/Config/config.xml
Executable file
38
local/modules/FedEx/Config/config.xml
Executable file
@@ -0,0 +1,38 @@
|
||||
<?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="FedEx\Loop\Price" name="fedex"/>
|
||||
<loop class="FedEx\Loop\CheckRightsLoop" name="fedex.check.rights" />
|
||||
<loop class="FedEx\Loop\NotSendLoop" name="fedex.notsend.loop" />
|
||||
</loops>
|
||||
|
||||
<forms>
|
||||
<form name="fedex.configuration" class="FedEx\Form\Configuration" />
|
||||
</forms>
|
||||
|
||||
<services>
|
||||
<service id="send.fedex.mail" class="FedEx\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="FedEx\EventListener\AreaDeletedListener" scope="request">-->
|
||||
<!-- <tag name="kernel.event_subscriber"/>-->
|
||||
<!-- <argument type="service" id="request" />-->
|
||||
<!-- </service>-->
|
||||
<!-- </services>-->
|
||||
|
||||
<hooks>
|
||||
<hook id="fedex.hook" class="FedEx\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>
|
||||
18
local/modules/FedEx/Config/module.xml
Executable file
18
local/modules/FedEx/Config/module.xml
Executable file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module>
|
||||
<fullnamespace>FedEx\FedEx</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>FedEx delivery</title>
|
||||
</descriptive>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Livraison par FedEx</title>
|
||||
</descriptive>
|
||||
<version>1.0.0</version>
|
||||
<author>
|
||||
<name>Laurent LE CORRE</name>
|
||||
<email>laurent@thecoredev.fr</email>
|
||||
</author>
|
||||
<type>delivery</type>
|
||||
<thelia>1.0.0</thelia>
|
||||
<stability>alpha</stability>
|
||||
</module>
|
||||
13
local/modules/FedEx/Config/routing.xml
Executable file
13
local/modules/FedEx/Config/routing.xml
Executable file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<routes xmlns="http://symfony.com/schema/routing"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
|
||||
<route id="fedex.edit.prices" path="/admin/module/fedex/prices" methods="post">
|
||||
<default key="_controller">FedEx\Controller\EditPrices::editprices</default>
|
||||
</route>
|
||||
|
||||
<route id="fedex.configuration" path="/admin/module/fedex/configuration/update" methods="post">
|
||||
<default key="_controller">FedEx\Controller\Configuration::editConfiguration</default>
|
||||
</route>
|
||||
</routes>
|
||||
Reference in New Issue
Block a user