13
13
use Magento \Framework \Config \File \ConfigFilePool ;
14
14
use Magento \Framework \Setup \ConfigOptionsListInterface ;
15
15
use Magento \Framework \Setup \Option \SelectConfigOption ;
16
+ use Magento \Framework \Setup \Option \SelectConfigOptionFactory ;
16
17
17
18
/**
18
19
* Deployment configuration options required for the Config module.
@@ -46,13 +47,21 @@ class ConfigOptionsList implements ConfigOptionsListInterface
46
47
*/
47
48
private $ configDataFactory ;
48
49
50
+ /**
51
+ * @var SelectConfigOptionFactory
52
+ */
53
+ private $ selectConfigOptionFactory ;
54
+
49
55
/**
50
56
* @param ConfigDataFactory $configDataFactory
57
+ * @param SelectConfigOptionFactory $selectConfigOptionFactory
51
58
*/
52
59
public function __construct (
53
- ConfigDataFactory $ configDataFactory
60
+ ConfigDataFactory $ configDataFactory ,
61
+ SelectConfigOptionFactory $ selectConfigOptionFactory
54
62
) {
55
63
$ this ->configDataFactory = $ configDataFactory ;
64
+ $ this ->selectConfigOptionFactory = $ selectConfigOptionFactory ;
56
65
}
57
66
58
67
/**
@@ -61,7 +70,7 @@ public function __construct(
61
70
public function getOptions ()
62
71
{
63
72
return [
64
- ObjectManager:: getInstance ()-> create (SelectConfigOption::class,
73
+ $ this -> selectConfigOptionFactory -> create (
65
74
[
66
75
'name ' => self ::INPUT_KEY_ASYNC_CONFIG_SAVE ,
67
76
'frontendType ' => SelectConfigOption::FRONTEND_WIZARD_SELECT ,
0 commit comments