Last active
September 27, 2018 15:37
-
-
Save jalogut/d72e0af6e10c502bff90423e66bf07b9 to your computer and use it in GitHub Desktop.
Magento 2 skip dumping the whole core_config_data when using app:config:dump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- module.xml --> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd"> | |
<module name="VendorName_ModuleName" setup_version="0.0.1" > | |
<sequence> | |
<module name="Magento_Config"/> | |
</sequence> | |
</module> | |
</config> | |
<!-- di.xml --> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | |
<virtualType name="skipDumpSystemSource" type="Magento\Config\App\Config\Source\DumpConfigSourceAggregated"> | |
<arguments> | |
<argument name="sources" xsi:type="array"> | |
</argument> | |
<argument name="rules" xsi:type="array"> | |
</argument> | |
</arguments> | |
</virtualType> | |
<type name="Magento\Deploy\Console\Command\App\ApplicationDumpCommand"> | |
<arguments> | |
<argument name="sources" xsi:type="array"> | |
<item name="system" xsi:type="array"> | |
<item name="source" xsi:type="object">skipDumpSystemSource</item> | |
<item name="namespace" xsi:type="string">skipSystem</item> | |
<item name="comment" xsi:type="string"></item> | |
</item> | |
<item name="system_env" xsi:type="array"> | |
<item name="source" xsi:type="object">skipDumpSystemSource</item> | |
<item name="namespace" xsi:type="string">skipSystem</item> | |
</item> | |
</argument> | |
</arguments> | |
</type> | |
</config> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment