Inital commit
This commit is contained in:
26
local/modules/TakeCustomerAccount/Config/config.xml
Normal file
26
local/modules/TakeCustomerAccount/Config/config.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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="take_customer_account" class="TakeCustomerAccount\Form\TakeCustomerAccountForm" />
|
||||
</forms>
|
||||
|
||||
<hooks>
|
||||
<hook id="take.customer.account" class="TakeCustomerAccount\Hook\AdminCustomerHook" scope="request">
|
||||
<tag name="hook.event_listener" event="customer.edit" type="back" method="onCustomerEdit"/>
|
||||
<tag name="hook.event_listener" event="customer.edit-js" type="back" method="onCustomerEditJs"/>
|
||||
</hook>
|
||||
</hooks>
|
||||
|
||||
<services>
|
||||
<service id="take.customer.account.listener" class="TakeCustomerAccount\EventListener\TakeCustomerAccountListener" scope="request">
|
||||
<tag name="kernel.event_subscriber"/>
|
||||
<argument type="service" id="event_dispatcher"/>
|
||||
<argument type="service" id="thelia.securityContext"/>
|
||||
<argument type="service" id="request"/>
|
||||
</service>
|
||||
</services>
|
||||
</config>
|
||||
24
local/modules/TakeCustomerAccount/Config/module.xml
Normal file
24
local/modules/TakeCustomerAccount/Config/module.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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_1.xsd">
|
||||
<fullnamespace>TakeCustomerAccount\TakeCustomerAccount</fullnamespace>
|
||||
<descriptive locale="en_US">
|
||||
<title>Lets take control of a customer account</title>
|
||||
</descriptive>
|
||||
<descriptive locale="fr_FR">
|
||||
<title>Permet de prendre le contrôle d'un compte client</title>
|
||||
</descriptive>
|
||||
<languages>
|
||||
<language>en_US</language>
|
||||
<language>fr_FR</language>
|
||||
</languages>
|
||||
<version>1.2.1</version>
|
||||
<author>
|
||||
<name>Gilles Bourgeat</name>
|
||||
<email>gbourgeat@openstudio.fr</email>
|
||||
</author>
|
||||
<type>classic</type>
|
||||
<thelia>2.1.0</thelia>
|
||||
<stability>prod</stability>
|
||||
</module>
|
||||
11
local/modules/TakeCustomerAccount/Config/routing.xml
Normal file
11
local/modules/TakeCustomerAccount/Config/routing.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?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="take_customer_account" path="/admin/take-customer-account/{customer_id}" methods="POST">
|
||||
<default key="_controller">TakeCustomerAccount\Controller\TakeCustomerAccountController::takeAction</default>
|
||||
<requirement key="customer_id">\d+</requirement>
|
||||
</route>
|
||||
</routes>
|
||||
Reference in New Issue
Block a user