di.xml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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\Url\SecurityInfo">
  10. <arguments>
  11. <argument name="secureUrlList" xsi:type="array">
  12. <item name="customer" xsi:type="string">/customer/</item>
  13. </argument>
  14. <argument name="excludedUrlList" xsi:type="array">
  15. <item name="customer_sections" xsi:type="string">/customer/section/load</item>
  16. </argument>
  17. </arguments>
  18. </type>
  19. <type name="Magento\Framework\View\Layout">
  20. <plugin name="customer-session-depersonalize"
  21. type="Magento\Customer\Model\Layout\DepersonalizePlugin" sortOrder="10"/>
  22. </type>
  23. <type name="Magento\Framework\App\Action\AbstractAction">
  24. <plugin name="customer-app-action-dispatchController-context-plugin"
  25. type="Magento\Customer\Model\App\Action\ContextPlugin" sortOrder="10"/>
  26. </type>
  27. <preference for="Magento\Customer\CustomerData\SectionPoolInterface"
  28. type="Magento\Customer\CustomerData\SectionPool"/>
  29. <type name="Magento\Customer\CustomerData\SectionPoolInterface">
  30. <arguments>
  31. <argument name="sectionSourceMap" xsi:type="array">
  32. <item name="customer" xsi:type="string">Magento\Customer\CustomerData\Customer</item>
  33. </argument>
  34. </arguments>
  35. </type>
  36. <type name="Magento\Customer\Controller\Plugin\Account">
  37. <arguments>
  38. <argument name="allowedActions" xsi:type="array">
  39. <item name="create" xsi:type="string">create</item>
  40. <item name="login" xsi:type="string">login</item>
  41. <item name="logoutsuccess" xsi:type="string">logoutsuccess</item>
  42. <item name="forgotpassword" xsi:type="string">forgotpassword</item>
  43. <item name="forgotpasswordpost" xsi:type="string">forgotpasswordpost</item>
  44. <item name="resetpassword" xsi:type="string">resetpassword</item>
  45. <item name="resetpasswordpost" xsi:type="string">resetpasswordpost</item>
  46. <item name="confirm" xsi:type="string">confirm</item>
  47. <item name="confirmation" xsi:type="string">confirmation</item>
  48. <item name="createpassword" xsi:type="string">createpassword</item>
  49. <item name="createpost" xsi:type="string">createpost</item>
  50. <item name="loginpost" xsi:type="string">loginpost</item>
  51. </argument>
  52. </arguments>
  53. </type>
  54. <type name="Magento\Customer\Controller\AbstractAccount">
  55. <plugin name="customer_account" type="Magento\Customer\Controller\Plugin\Account" />
  56. </type>
  57. <type name="Magento\Checkout\Block\Cart\Sidebar">
  58. <plugin name="customer_cart" type="Magento\Customer\Model\Cart\ConfigPlugin" />
  59. </type>
  60. <type name="Magento\Framework\Session\SessionManager">
  61. <plugin name="session_checker" type="Magento\Customer\CustomerData\Plugin\SessionChecker" />
  62. </type>
  63. <type name="Magento\Authorization\Model\CompositeUserContext">
  64. <arguments>
  65. <argument name="userContexts" xsi:type="array">
  66. <item name="customerSessionUserContext" xsi:type="array">
  67. <item name="type" xsi:type="object">Magento\Customer\Model\Authorization\CustomerSessionUserContext</item>
  68. <item name="sortOrder" xsi:type="string">10</item>
  69. </item>
  70. </argument>
  71. </arguments>
  72. </type>
  73. <type name="Magento\Customer\Block\CustomerData">
  74. <arguments>
  75. <argument name="expirableSectionNames" xsi:type="array">
  76. <item name="cart" xsi:type="string">cart</item>
  77. </argument>
  78. </arguments>
  79. </type>
  80. </config>