src/mako/commander/CommandBus.php
protected function resolveCommand($command, array $parameters): CommandInterface
	{
		if($command instanceof CommandInterface)
		{
			return $command;
		}

		return $this->container->get($command, $parameters);
	}
protected function resolveCommand($command, array $parameters): CommandInterface
	{
		if($command instanceof CommandInterface)
		{
			return $command;
		}

		return $this->container->get($command, $parameters);
	}
protected function resolveCommand ( $ command , array $ parameters ) : CommandInterface { if ( $ command instanceof CommandInterface ) { return $ command ; } return $ this -> container -> get ( $ command , $ parameters ) ; }
Resolves the command.

@param  \mako\commander\CommandInterface|string $command    Command
@param  array                                   $parameters Parameters
@return \mako\commander\CommandInterface
Resolves the command .