Skip to content

Commit ebd50c4

Browse files
committed
MAGE-962 Defer store manager operations from CLI DI
1 parent e0a69de commit ebd50c4

File tree

4 files changed

+30
-31
lines changed

4 files changed

+30
-31
lines changed

Console/Command/ReplicaDeleteCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ class ReplicaDeleteCommand extends AbstractReplicaCommand implements ReplicaDele
2323
protected const UNUSED_OPTION_SHORTCUT = 'u';
2424

2525
public function __construct(
26-
protected ReplicaManagerInterface $replicaManager,
27-
protected StoreManagerInterface $storeManager,
28-
State $state,
29-
StoreNameFetcher $storeNameFetcher,
30-
?string $name = null
26+
protected ReplicaManagerInterface\Proxy $replicaManager,
27+
protected StoreManagerInterface $storeManager,
28+
State $state,
29+
StoreNameFetcher $storeNameFetcher,
30+
?string $name = null
3131
)
3232
{
3333
parent::__construct($state, $storeNameFetcher, $name);

Console/Command/ReplicaDisableVirtualCommand.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ class ReplicaDisableVirtualCommand extends AbstractReplicaCommand implements Rep
2525
use ReplicaSyncCommandTrait;
2626

2727
public function __construct(
28-
protected WriterInterface $configWriter,
29-
protected ConfigChecker $configChecker,
30-
protected ReinitableConfigInterface $scopeConfig,
31-
protected SerializerInterface $serializer,
32-
protected ConfigHelper $configHelper,
33-
protected CacheManager $cacheManager,
34-
protected ReplicaManagerInterface $replicaManager,
35-
protected StoreManagerInterface $storeManager,
36-
protected ProductHelper $productHelper,
37-
State $state,
38-
StoreNameFetcher $storeNameFetcher,
39-
?string $name = null
28+
protected WriterInterface $configWriter,
29+
protected ConfigChecker $configChecker,
30+
protected ReinitableConfigInterface $scopeConfig,
31+
protected SerializerInterface $serializer,
32+
protected ConfigHelper\Proxy $configHelper,
33+
protected CacheManager $cacheManager,
34+
protected ReplicaManagerInterface\Proxy $replicaManager,
35+
protected StoreManagerInterface $storeManager,
36+
protected ProductHelper\Proxy $productHelper,
37+
State $state,
38+
StoreNameFetcher $storeNameFetcher,
39+
?string $name = null
4040
)
4141
{
4242
parent::__construct($state, $storeNameFetcher, $name);

Console/Command/ReplicaRebuildCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ class ReplicaRebuildCommand
2626
use ReplicaDeleteCommandTrait;
2727

2828
public function __construct(
29-
protected ProductHelper $productHelper,
30-
protected ReplicaManagerInterface $replicaManager,
31-
protected StoreManagerInterface $storeManager,
32-
protected ReplicaState $replicaState,
33-
AppState $appState,
34-
StoreNameFetcher $storeNameFetcher,
35-
?string $name = null
29+
protected ProductHelper\Proxy $productHelper,
30+
protected ReplicaManagerInterface\Proxy $replicaManager,
31+
protected StoreManagerInterface $storeManager,
32+
protected ReplicaState $replicaState,
33+
AppState $appState,
34+
StoreNameFetcher $storeNameFetcher,
35+
?string $name = null
3636
)
3737
{
3838
parent::__construct($appState, $storeNameFetcher, $name);

Console/Command/ReplicaSyncCommand.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ class ReplicaSyncCommand extends AbstractReplicaCommand implements ReplicaSyncCo
2424
use ReplicaSyncCommandTrait;
2525

2626
public function __construct(
27-
28-
protected ProductHelper $productHelper,
29-
protected ReplicaManagerInterface $replicaManager,
30-
protected StoreManagerInterface $storeManager,
31-
State $state,
32-
StoreNameFetcher $storeNameFetcher,
33-
?string $name = null
27+
protected ProductHelper\Proxy $productHelper,
28+
protected ReplicaManagerInterface\Proxy $replicaManager,
29+
protected StoreManagerInterface $storeManager,
30+
State $state,
31+
StoreNameFetcher $storeNameFetcher,
32+
?string $name = null
3433
)
3534
{
3635
parent::__construct($state, $storeNameFetcher, $name);

0 commit comments

Comments
 (0)