Refactor names in CommandResolverInterface
This commit is contained in:
1 parent
07f8ae467c
commit
9ab9561270
5 files changed
+68
-10
No files matched your search
@@ -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