Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #186 from leoquijano/feature/sensitive-and-environ…
Browse files Browse the repository at this point in the history
…ment-specific-settings

[#178] Added sensitive and environment-specific entries to the configuration type pool
  • Loading branch information
erikhansen authored Oct 11, 2018
2 parents c948dfc + f95353b commit 95e4409
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,29 @@
<argument name="connectionName" xsi:type="string">sales</argument>
</arguments>
</type>

<!--
/**
* Add sensitive and environment-specific settings to the configuration type pool.
* This ensures that their values are not dumped by app:config:dump in app/etc/config.php, which is usually in version control.
*
* See:
* - https://devdocs.magento.com/guides/v2.2/extension-dev-guide/configuration/sensitive-and-environment-settings.html
*/
-->
<type name="Magento\Config\Model\Config\TypePool">
<arguments>
<argument name="sensitive" xsi:type="array">
<item name="tax/avatax/production_account_number" xsi:type="string">1</item>
<item name="tax/avatax/production_license_key" xsi:type="string">1</item>
<item name="tax/avatax/production_company_code" xsi:type="string">1</item>
<item name="tax/avatax/development_account_number" xsi:type="string">1</item>
<item name="tax/avatax/development_license_key" xsi:type="string">1</item>
<item name="tax/avatax/development_company_code" xsi:type="string">1</item>
</argument>
<argument name="environment" xsi:type="array">
<item name="tax/avatax/live_mode" xsi:type="string">1</item>
</argument>
</arguments>
</type>
</config>

0 comments on commit 95e4409

Please sign in to comment.