Skip to content

Commit 6a522db

Browse files
committed
Update AbstractCustomCommand.php
1 parent 57a54b2 commit 6a522db

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Ubiquity/devtools/cmd/commands/AbstractCustomCommand.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ abstract class AbstractCustomCommand extends AbstractCmd {
1919
*
2020
* @var Command
2121
*/
22-
private $command;
22+
protected $command;
2323

2424
public function __construct() {
25-
$this->command = new Command($this->getName(), $this->getValue(), $this->getDescription(), $this->getAliases(), $this->getParameters(), $this->getExamples());
25+
$this->command = new Command($this->getName(), $this->getValue(), $this->getDescription(), $this->getAliases(), $this->getParameters(), $this->getExamples(), $this->getCategory());
2626
}
2727

2828
/**
@@ -68,6 +68,15 @@ abstract protected function getParameters(): array;
6868
*/
6969
abstract protected function getExamples(): array;
7070

71+
/**
72+
* Return the command category.
73+
*
74+
* @return string
75+
*/
76+
protected function getCategory() {
77+
return 'custom';
78+
}
79+
7180
/**
7281
* Return the command informations.
7382
*

0 commit comments

Comments
 (0)