/home/techb158/public_html/wp-content/plugins/kirki/libraries/framework/Console
Edit: /home/techb158/public_html/wp-content/plugins/kirki/libraries/framework/Console/CommandManager.php (1980B)
resolve($command);
$args = $command->args();
\WP_CLI::add_command($this->make($name), $command, $args);
}
/**
* Resolve the command
*
* @param mixed $command The command.
*
* @return CommandBase
*
* @throws \RuntimeException
*
* @since 1.0.0
*/
protected function resolve($command)
{
if (\is_object($command)) {
if (!$command instanceof CommandBase) {
throw new RuntimeException(\sprintf("Command [%s] must extend [%s]", \get_class($command), CommandBase::class));
}
return $command;
}
if (!\class_exists($command)) {
throw new RuntimeException(\sprintf("Command class [%s] not found", $command));
}
return app()->make($command);
}
/**
* Make the command name
*
* @param mixed $command The command.
*
* @return string
*
* @since 1.0.0
*/
protected function make($command)
{
return \sprintf('%s %s', $this->command_base, $command);
}
}