Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

40 wiersze
1.9 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <type name="Magento\Framework\Authorization">
  10. <plugin name="customerAuthorization" type="Magento\Customer\Model\Plugin\CustomerAuthorization" />
  11. </type>
  12. <type name="Magento\Authorization\Model\CompositeUserContext">
  13. <arguments>
  14. <argument name="userContexts" xsi:type="array">
  15. <item name="customerSessionUserContext" xsi:type="array">
  16. <item name="type" xsi:type="object">Magento\Customer\Model\Authorization\CustomerSessionUserContext\Proxy</item>
  17. <item name="sortOrder" xsi:type="string">20</item>
  18. </item>
  19. </argument>
  20. </arguments>
  21. </type>
  22. <type name="Magento\Customer\Api\CustomerRepositoryInterface">
  23. <plugin name="updateCustomerByIdFromRequest" type="Magento\Customer\Model\Plugin\UpdateCustomer" />
  24. </type>
  25. <type name="Magento\Customer\Model\Customer\AuthorizationComposite">
  26. <arguments>
  27. <argument name="authorizationChecks" xsi:type="array">
  28. <item name="rest_customer_authorization" xsi:type="object">
  29. Magento\Customer\Model\Customer\Authorization
  30. </item>
  31. </argument>
  32. </arguments>
  33. </type>
  34. <type name="Magento\Webapi\Controller\Rest\ParamsOverrider">
  35. <plugin name="validateCustomerData" type="Magento\Customer\Plugin\Webapi\Controller\Rest\ValidateCustomerData" sortOrder="1" disabled="false" />
  36. </type>
  37. <preference for="Magento\Customer\Api\AccountManagementInterface"
  38. type="Magento\Customer\Model\AccountManagementApi" />
  39. </config>