Skip to content

Commit 8a66f9e

Browse files
committed
Add back method until going full attributes
1 parent a66ed0e commit 8a66f9e

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

src/Command/MeilisearchClearCommand.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ final class MeilisearchClearCommand extends IndexCommand
1414
protected static $defaultName = 'meili:clear';
1515
protected static $defaultDescription = 'Clear the index documents';
1616

17+
public static function getDefaultName(): string
18+
{
19+
return self::$defaultName;
20+
}
21+
22+
public static function getDefaultDescription(): string
23+
{
24+
return self::$defaultDescription;
25+
}
26+
1727
protected function configure(): void
1828
{
1929
$this->addOption('indices', 'i', InputOption::VALUE_OPTIONAL, 'Comma-separated list of index names');

src/Command/MeilisearchCreateCommand.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ public function __construct(SearchService $searchService, Client $searchClient)
3030
$this->searchClient = $searchClient;
3131
}
3232

33+
public static function getDefaultName(): string
34+
{
35+
return self::$defaultName;
36+
}
37+
38+
public static function getDefaultDescription(): string
39+
{
40+
return self::$defaultDescription;
41+
}
42+
3343
protected function configure(): void
3444
{
3545
$this->addOption('indices', 'i', InputOption::VALUE_OPTIONAL, 'Comma-separated list of index names');

src/Command/MeilisearchDeleteCommand.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313

1414
final class MeilisearchDeleteCommand extends IndexCommand
1515
{
16+
public static function getDefaultName(): string
17+
{
18+
return self::$defaultName;
19+
}
20+
21+
public static function getDefaultDescription(): string
22+
{
23+
return self::$defaultDescription;
24+
}
25+
1626
protected static $defaultName = 'meili:delete';
1727
protected static $defaultDescription = 'Delete the indexes';
1828

src/Command/MeilisearchImportCommand.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ final class MeilisearchImportCommand extends IndexCommand
2222
{
2323
private const DEFAULT_RESPONSE_TIMEOUT = 5000;
2424

25+
public static function getDefaultName(): string
26+
{
27+
return self::$defaultName;
28+
}
29+
30+
public static function getDefaultDescription(): string
31+
{
32+
return self::$defaultDescription;
33+
}
34+
2535
protected static $defaultName = 'meili:import';
2636
protected static $defaultDescription = 'Import given entity into search engine';
2737

0 commit comments

Comments
 (0)