-
Notifications
You must be signed in to change notification settings - Fork 9.3k
/
di.xml
24 lines (24 loc) · 943 Bytes
/
di.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\Url\SecurityInfo">
<arguments>
<argument name="secureUrlList" xsi:type="array">
<item name="contact" xsi:type="string">/contact/</item>
</argument>
</arguments>
</type>
<type name="Magento\Contact\Plugin\UserDataProvider\ViewModel">
<arguments>
<argument name="viewModel" xsi:type="object">Magento\Contact\ViewModel\UserDataProvider</argument>
</arguments>
</type>
<type name="Magento\Contact\Block\ContactForm">
<plugin name="set_view_model" type="Magento\Contact\Plugin\UserDataProvider\ViewModel" />
</type>
</config>