|
6 | 6 |
|
7 | 7 | namespace Magento\Indexer\Setup; |
8 | 8 |
|
9 | | -use Magento\Framework\App\ObjectManager; |
10 | 9 | use Magento\Framework\Encryption\Encryptor; |
11 | 10 | use Magento\Framework\Encryption\EncryptorInterface; |
12 | 11 | use Magento\Framework\Indexer\StateInterface; |
@@ -66,22 +65,22 @@ class Recurring implements InstallSchemaInterface |
66 | 65 | * @param ConfigInterface $config |
67 | 66 | * @param EncryptorInterface $encryptor |
68 | 67 | * @param EncoderInterface $encoder |
69 | | - * @param IndexerInterfaceFactory|null $indexerFactory |
| 68 | + * @param IndexerInterfaceFactory $indexerFactory |
70 | 69 | */ |
71 | 70 | public function __construct( |
72 | 71 | CollectionFactory $statesFactory, |
73 | 72 | StateFactory $stateFactory, |
74 | 73 | ConfigInterface $config, |
75 | 74 | EncryptorInterface $encryptor, |
76 | 75 | EncoderInterface $encoder, |
77 | | - IndexerInterfaceFactory $indexerFactory = null |
| 76 | + IndexerInterfaceFactory $indexerFactory |
78 | 77 | ) { |
79 | 78 | $this->statesFactory = $statesFactory; |
80 | 79 | $this->stateFactory = $stateFactory; |
81 | 80 | $this->config = $config; |
82 | 81 | $this->encryptor = $encryptor; |
83 | 82 | $this->encoder = $encoder; |
84 | | - $this->indexerFactory = $indexerFactory ?: ObjectManager::getInstance()->get(IndexerInterfaceFactory::class); |
| 83 | + $this->indexerFactory = $indexerFactory; |
85 | 84 | } |
86 | 85 |
|
87 | 86 | /** |
|
0 commit comments