1313use Magento \Framework \Config \File \ConfigFilePool ;
1414use Magento \Framework \Setup \ConfigOptionsListInterface ;
1515use Magento \Framework \Setup \Option \SelectConfigOption ;
16+ use Magento \Framework \Setup \Option \SelectConfigOptionFactory ;
1617
1718/**
1819 * Deployment configuration options required for the Config module.
@@ -46,13 +47,21 @@ class ConfigOptionsList implements ConfigOptionsListInterface
4647 */
4748 private $ configDataFactory ;
4849
50+ /**
51+ * @var SelectConfigOptionFactory
52+ */
53+ private $ selectConfigOptionFactory ;
54+
4955 /**
5056 * @param ConfigDataFactory $configDataFactory
57+ * @param SelectConfigOptionFactory $selectConfigOptionFactory
5158 */
5259 public function __construct (
53- ConfigDataFactory $ configDataFactory
60+ ConfigDataFactory $ configDataFactory ,
61+ SelectConfigOptionFactory $ selectConfigOptionFactory
5462 ) {
5563 $ this ->configDataFactory = $ configDataFactory ;
64+ $ this ->selectConfigOptionFactory = $ selectConfigOptionFactory ;
5665 }
5766
5867 /**
@@ -61,7 +70,7 @@ public function __construct(
6170 public function getOptions ()
6271 {
6372 return [
64- ObjectManager:: getInstance ()-> create (SelectConfigOption::class,
73+ $ this -> selectConfigOptionFactory -> create (
6574 [
6675 'name ' => self ::INPUT_KEY_ASYNC_CONFIG_SAVE ,
6776 'frontendType ' => SelectConfigOption::FRONTEND_WIZARD_SELECT ,
0 commit comments