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