Refactor names in CommandResolverInterface
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user