Skip to content

Commit

Permalink
Merge pull request #159 from kennydeckers/master
Browse files Browse the repository at this point in the history
Ability to configure per environment
  • Loading branch information
srenon committed Jun 11, 2020
2 parents c2a33f4 + e38d3dc commit 84bc31c
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,26 @@
type="MagePal\GmailSmtpApp\Plugin\Mail\Template\TransportBuilderPlugin"/>
</type>

<type name="Magento\Framework\Mail\Template\TransportBuilderByStore">
<plugin sortOrder="1" name="magePalGmailSmtpAppTransportBuilderByStore"
type="MagePal\GmailSmtpApp\Plugin\Mail\Template\TransportBuilderByStorePlugin"/>
</type>
<type name="Magento\Framework\Mail\Template\TransportBuilderByStore">
<plugin sortOrder="1" name="magePalGmailSmtpAppTransportBuilderByStore"
type="MagePal\GmailSmtpApp\Plugin\Mail\Template\TransportBuilderByStorePlugin"/>
</type>

<type name="Magento\Config\Model\Config\TypePool">
<arguments>
<argument name="environment" xsi:type="array">
<item name="system/gmailsmtpapp/active" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/ssl" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/auth" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/smtphost" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/smtpport" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/username" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/password" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/set_reply_to" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/set_from" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/custom_from_email" xsi:type="string">1</item>
<item name="system/gmailsmtpapp/return_path_email" xsi:type="string">1</item>
</argument>
</arguments>
</type>
</config>

0 comments on commit 84bc31c

Please sign in to comment.