@@ -131,28 +131,28 @@ class Form extends \Magento\Backend\Block\Widget\Form\Generic
131
131
* @param \Magento\Framework\Data\FormFactory $formFactory
132
132
* @param \Magento\Config\Model\Config\Factory $configFactory
133
133
* @param \Magento\Config\Model\Config\Structure $configStructure
134
- * @param \Magento\Config\Model\Config\Reader\Source\Deployed\SettingChecker $settingChecker
135
134
* @param \Magento\Config\Block\System\Config\Form\Fieldset\Factory $fieldsetFactory
136
135
* @param \Magento\Config\Block\System\Config\Form\Field\Factory $fieldFactory
137
136
* @param array $data
137
+ * @param SettingChecker|null $settingChecker
138
138
*/
139
139
public function __construct (
140
140
\Magento \Backend \Block \Template \Context $ context ,
141
141
\Magento \Framework \Registry $ registry ,
142
142
\Magento \Framework \Data \FormFactory $ formFactory ,
143
143
\Magento \Config \Model \Config \Factory $ configFactory ,
144
144
\Magento \Config \Model \Config \Structure $ configStructure ,
145
- \Magento \Config \Model \Config \Reader \Source \Deployed \SettingChecker $ settingChecker ,
146
145
\Magento \Config \Block \System \Config \Form \Fieldset \Factory $ fieldsetFactory ,
147
146
\Magento \Config \Block \System \Config \Form \Field \Factory $ fieldFactory ,
148
- array $ data = []
147
+ array $ data = [],
148
+ SettingChecker $ settingChecker = null
149
149
) {
150
150
parent ::__construct ($ context , $ registry , $ formFactory , $ data );
151
151
$ this ->_configFactory = $ configFactory ;
152
152
$ this ->_configStructure = $ configStructure ;
153
153
$ this ->_fieldsetFactory = $ fieldsetFactory ;
154
154
$ this ->_fieldFactory = $ fieldFactory ;
155
- $ this ->settingChecker = $ settingChecker ;
155
+ $ this ->settingChecker = $ settingChecker ?: ObjectManager:: getInstance ()-> get (SettingChecker::class) ;
156
156
157
157
$ this ->_scopeLabels = [
158
158
self ::SCOPE_DEFAULT => __ ('[GLOBAL] ' ),
0 commit comments