Skip to content

Commit 4120a4e

Browse files
committed
MAGE-938 Introduce ReplicaRebuildCommand
1 parent 3f4b68f commit 4120a4e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Algolia\AlgoliaSearch\Console\Command;
4+
5+
class ReplicaRebuildCommand extends AbstractReplicaCommand
6+
{
7+
protected function getReplicaCommandName(): string
8+
{
9+
return 'rebuild';
10+
}
11+
12+
protected function getCommandDescription(): string {
13+
return 'Rebuild replica configuration for Magento sorting attributes';
14+
}
15+
16+
protected function getStoreArgumentDescription(): string
17+
{
18+
return 'ID(s) for store(s) to rebuild replicas';
19+
}
20+
21+
protected function getAdditionalDefinition(): array
22+
{
23+
return [];
24+
}
25+
26+
}

etc/di.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
<argument name="commands" xsi:type="array">
150150
<item name="replica_sync_command" xsi:type="object">Algolia\AlgoliaSearch\Console\Command\ReplicaSyncCommand</item>
151151
<item name="replica_delete_command" xsi:type="object">Algolia\AlgoliaSearch\Console\Command\ReplicaDeleteCommand</item>
152+
<item name="replica_rebuild_command" xsi:type="object">Algolia\AlgoliaSearch\Console\Command\ReplicaRebuildCommand</item>
152153
</argument>
153154
</arguments>
154155
</type>

0 commit comments

Comments
 (0)