Skip to content

Commit 8b66837

Browse files
MC-25269: Upgrade from 2.3.x CE with SD to 2.3.x EE fails
- remove object manager from setup recurring script
1 parent a45d23c commit 8b66837

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/Magento/Indexer/Setup/Recurring.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Magento\Indexer\Setup;
88

9-
use Magento\Framework\App\ObjectManager;
109
use Magento\Framework\Encryption\Encryptor;
1110
use Magento\Framework\Encryption\EncryptorInterface;
1211
use Magento\Framework\Indexer\StateInterface;
@@ -66,22 +65,22 @@ class Recurring implements InstallSchemaInterface
6665
* @param ConfigInterface $config
6766
* @param EncryptorInterface $encryptor
6867
* @param EncoderInterface $encoder
69-
* @param IndexerInterfaceFactory|null $indexerFactory
68+
* @param IndexerInterfaceFactory $indexerFactory
7069
*/
7170
public function __construct(
7271
CollectionFactory $statesFactory,
7372
StateFactory $stateFactory,
7473
ConfigInterface $config,
7574
EncryptorInterface $encryptor,
7675
EncoderInterface $encoder,
77-
IndexerInterfaceFactory $indexerFactory = null
76+
IndexerInterfaceFactory $indexerFactory
7877
) {
7978
$this->statesFactory = $statesFactory;
8079
$this->stateFactory = $stateFactory;
8180
$this->config = $config;
8281
$this->encryptor = $encryptor;
8382
$this->encoder = $encoder;
84-
$this->indexerFactory = $indexerFactory ?: ObjectManager::getInstance()->get(IndexerInterfaceFactory::class);
83+
$this->indexerFactory = $indexerFactory;
8584
}
8685

8786
/**

0 commit comments

Comments
 (0)