Skip to content

Commit

Permalink
Enhance ListThemesCommand: add constructor documentation and improve …
Browse files Browse the repository at this point in the history
…method comments
  • Loading branch information
dermatz committed Dec 13, 2024
1 parent 07c9c5c commit caadb45
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Console/Command/ListThemesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,33 @@

class ListThemesCommand extends Command
{
/**
* Constructor
*
* @param ThemeList $themeList
*/
public function __construct(
private readonly ThemeList $themeList,
) {
parent::__construct();
}

/**
* Configure the command
*/
protected function configure(): void
{
$this->setName('mageforge:themes:list');
$this->setDescription('Lists all available themes');
}

/**
* Execute the command
*
* @param InputInterface $input
* @param OutputInterface $output
* @return int
*/
protected function execute(
InputInterface $input,
OutputInterface $output,
Expand Down

0 comments on commit caadb45

Please sign in to comment.