Fixed command interfaces
This commit is contained in:
@@ -10,6 +10,7 @@ use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use JsonRpc\Client;
|
||||
use CloudObjects\PhpMAE\TestEnvironmentManager;
|
||||
|
||||
@@ -33,7 +34,7 @@ class ClassTestEnvRPCCommand extends AbstractObjectCommand {
|
||||
->addArgument('parameters', InputArgument::IS_ARRAY, 'The parameters for the method.');
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$this->requireCloudObjectsCLI();
|
||||
|
||||
$container = $this->getContainer();
|
||||
@@ -68,6 +69,7 @@ class ClassTestEnvRPCCommand extends AbstractObjectCommand {
|
||||
: json_encode($client->result, JSON_PRETTY_PRINT));
|
||||
else
|
||||
$output->writeln("<error>RPC has failed!</error>");
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user