Refactor names in CommandResolverInterface

This commit is contained in:
2024-12-28 15:35:41 +01:00
parent 07f8ae467c
commit 9ab9561270
5 changed files with 68 additions and 10 deletions

View File

@ -40,12 +40,12 @@ class CommandRegistry implements CommandResolverInterface, EventEmitterInterface
$this->emit(self::EVENT_UNREGISTERED, [ $command ]);
}
public function find(string $command): ?Command
public function findCommand(string $command): ?Command
{
return $this->commands[$command] ?? null;
}
public function getNames(): array
public function getCommandNames(): array
{
return array_keys($this->commands);
}