Skip to content

Commit f4c4108

Browse files
committed
Update system.xml & config.xml
1 parent b4c9f16 commit f4c4108

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

etc/adminhtml/system.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
99
<system>
10-
<section id="mfcli" translate="label" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
10+
<section id="mfcli" translate="label" sortOrder="10019577670" showInDefault="1" showInWebsite="1" showInStore="1">
1111
<class>separator-top</class>
1212
<label>Command Line Interface</label>
1313
<tab>magefan</tab>
@@ -25,15 +25,15 @@
2525
<label>Product Key</label>
2626
<frontend_model>Magefan\Community\Block\Adminhtml\System\Config\Form\ProductKeyField</frontend_model>
2727
</field>
28-
<field id="php" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
28+
<field id="php" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
2929
<label>PHP Command</label>
3030
<comment>If you use some custom PHP binary you can enter PHP command here. E.g. /usr/bin/php7.2 -dmemory_limit=-1.</comment>
3131
</field>
32-
<field id="commands" translate="label comment" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
32+
<field id="commands" translate="label comment" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
3333
<label>Most Used Magento 2 Commands</label>
3434
<source_model>Magefan\Cli\Model\Config\Source\Commands</source_model>
3535
</field>
36-
<field id="non_admin_commands" translate="label comment" type="multiselect" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
36+
<field id="non_admin_commands" translate="label comment" type="multiselect" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
3737
<label>Allowed Commands For Managers</label>
3838
<source_model>Magefan\Cli\Model\Config\Source\Commands</source_model>
3939
<comment>Admin users with no "Command Line Admin" access will be able to run only these commands.</comment>

etc/config.xml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<enabled>0</enabled>
1313
<mfmodule>Cli</mfmodule>
1414
<mftype>1</mftype>
15+
<php/>
1516
<commands>cache:flush,indexer:reindex</commands>
1617
<non_admin_commands>cache:flush,indexer:reindex</non_admin_commands>
1718
</general>

0 commit comments

Comments
 (0)