[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>
|
||||
Reference in New Issue
Block a user