Files
2020-11-19 15:36:28 +01:00

26 lines
1.2 KiB
XML

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