Skip to content

Commit 0e0bacf

Browse files
committed
ACPT-826
1 parent 47a9a46 commit 0e0bacf

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

app/code/Magento/AsyncConfig/Setup/ConfigOptionsList.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Magento\Framework\Config\File\ConfigFilePool;
1414
use Magento\Framework\Setup\ConfigOptionsListInterface;
1515
use 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

Comments
 (0)