[04/09/2024] Installation du module ForcePhone pour rendre le téléphone obligatoire à la création du compte.
This commit is contained in:
28
local/modules/ForcePhone/Config/config.xml
Normal file
28
local/modules/ForcePhone/Config/config.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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">
|
||||
|
||||
<forms>
|
||||
<form name="forcephone_configuration" class="ForcePhone\Form\ConfigForm" />
|
||||
</forms>
|
||||
|
||||
<commands>
|
||||
<command class="ForcePhone\Command\UpdatePhoneNumberCommand" />
|
||||
</commands>
|
||||
|
||||
<hooks>
|
||||
<hook id="forcephone.configuration.hook" class="ForcePhone\Hook\HookManager" scope="request">
|
||||
<tag name="hook.event_listener" event="module.configuration" type="back" method="onModuleConfigure" />
|
||||
</hook>
|
||||
</hooks>
|
||||
|
||||
<services>
|
||||
<service id="forcephone.services" class="ForcePhone\EventListeners\ForcePhoneEventListener" scope="request">
|
||||
<argument id="request" type="service"/>
|
||||
<tag name="kernel.event_subscriber"/>
|
||||
</service>
|
||||
</services>
|
||||
|
||||
</config>
|
||||
32
local/modules/ForcePhone/Config/module.xml
Normal file
32
local/modules/ForcePhone/Config/module.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module xmlns="http://thelia.net/schema/dic/module"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/module http://thelia.net/schema/dic/module/module-2_2.xsd">
|
||||
<fullnamespace>ForcePhone\ForcePhone</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>Require the customer to enter its home phone number, mobile phone number or both</title>
|
||||
</descriptive>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Oblige le client à laisser un numéro de téléphone fixe, mobile ou les deux</title>
|
||||
</descriptive>
|
||||
<languages>
|
||||
<language>en_US</language>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>1.2.5</version>
|
||||
<authors>
|
||||
<author>
|
||||
<name>Etienne Perriere</name>
|
||||
<email>eperriere@openstudio.fr</email>
|
||||
</author>
|
||||
<author>
|
||||
<name>Franck Allimant</name>
|
||||
<company>CQFDev</company>
|
||||
<email>franck@cqfdev.fr</email>
|
||||
<website>www.cqfdev.fr</website>
|
||||
</author>
|
||||
</authors>
|
||||
<type>classic</type>
|
||||
<thelia>2.1.0</thelia>
|
||||
<stability>beta</stability>
|
||||
</module>
|
||||
18
local/modules/ForcePhone/Config/routing.xml
Normal file
18
local/modules/ForcePhone/Config/routing.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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="forcephone.config" path="/admin/module/forcephone/configure" methods="post">
|
||||
<default key="_controller">ForcePhone\Controller\ConfigureController::configure</default>
|
||||
</route>
|
||||
|
||||
<route id="forcephone.check_order_phone" path="/forcephone/check/order-phone/{orderId}" methods="get">
|
||||
<default key="_controller">ForcePhone\Controller\ApiController::checkPhoneOrder</default>
|
||||
</route>
|
||||
|
||||
<route id="forcephone.reformat_phone" path="/forcephone/format-phone/{phone}/{countryId}" methods="get">
|
||||
<default key="_controller">ForcePhone\Controller\ApiController::reformatPhoneNumber</default>
|
||||
</route>
|
||||
</routes>
|
||||
Reference in New Issue
Block a user