Inital commit

This commit is contained in:
2020-11-19 15:36:28 +01:00
parent 71f32f83d3
commit 66ce4ee218
18077 changed files with 2166122 additions and 35184 deletions

View 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>

View 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>

View 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>