No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

44 líneas
2.0 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. <virtualType name="Magento\Newsletter\Model\Session\Storage" type="Magento\Framework\Session\Storage">
  10. <arguments>
  11. <argument name="namespace" xsi:type="string">newsletter</argument>
  12. </arguments>
  13. </virtualType>
  14. <type name="Magento\Newsletter\Model\Session">
  15. <arguments>
  16. <argument name="storage" xsi:type="object">Magento\Newsletter\Model\Session\Storage</argument>
  17. </arguments>
  18. </type>
  19. <type name="Magento\Newsletter\Helper\Data">
  20. <arguments>
  21. <argument name="frontendUrlBuilder" xsi:type="object">Magento\Framework\Url</argument>
  22. </arguments>
  23. </type>
  24. <type name="Magento\Customer\Api\CustomerRepositoryInterface">
  25. <plugin name="update_newsletter_subscription_on_customer_update"
  26. type="Magento\Newsletter\Model\Plugin\CustomerPlugin"/>
  27. </type>
  28. <type name="Magento\Newsletter\Model\Subscriber">
  29. <plugin name="remove_subscriber_from_queue_after_unsubscribe" type="Magento\Newsletter\Model\Plugin\RemoveSubscriberFromQueue"/>
  30. <arguments>
  31. <argument name="customerSession" xsi:type="object">Magento\Customer\Model\Session\Proxy</argument>
  32. </arguments>
  33. </type>
  34. <preference for="Magento\Newsletter\Model\SubscriptionManagerInterface"
  35. type="Magento\Newsletter\Model\SubscriptionManager"/>
  36. <type name="Magento\Framework\Console\CommandListInterface">
  37. <arguments>
  38. <argument name="commands" xsi:type="array">
  39. <item name="newsletterCompatibilityCheck" xsi:type="object">Magento\Newsletter\Console\Command\TemplateCheckCommand</item>
  40. </argument>
  41. </arguments>
  42. </type>
  43. </config>