Fixed command interfaces
This commit is contained in:
@@ -9,6 +9,7 @@ namespace CloudObjects\PhpMAE\Commands;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use CloudObjects\SDK\COIDParser;
|
||||
|
||||
class DependenciesAddWebAPICommand extends AbstractAddDependenciesCommand {
|
||||
@@ -23,7 +24,7 @@ class DependenciesAddWebAPICommand extends AbstractAddDependenciesCommand {
|
||||
parent::configure();
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$this->requireCloudObjectsCLI();
|
||||
|
||||
$this->parse($input->getArgument('coid-target'));
|
||||
@@ -67,6 +68,7 @@ class DependenciesAddWebAPICommand extends AbstractAddDependenciesCommand {
|
||||
$output->writeln("");
|
||||
$output->writeln("3) Make API requests in your class by calling methods on \$this->".$key."Api.");
|
||||
$output->writeln("");
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user