Skip to content

Commit

Permalink
Merge pull request #270 from Smolevich/add-return-status-code
Browse files Browse the repository at this point in the history
Add return 0 for compability with symfomy parent console command
  • Loading branch information
veewee authored Jan 9, 2020
2 parents b2d3c48 + c55022f commit 46e2b17
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->handleClassmap($generator, $typeMap, $path);

$io->success('Generated classmap at ' . $path);

return 0;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
);

$io->success('Generated client at ' . $destination);

return 0;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->filesystem->putFileContents($dest, $generator->generate(new FileGenerator(), $context));

$io->success('Generated client factory at ' . $dest);

return 0;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$generator = new ConfigGenerator();
$this->filesystem->putFileContents($destination, $generator->generate(new FileGenerator(), $context));
$io->success('Config has been written to ' . $destination);

return 0;
}

private function addNonEmptySetter(ConfigContext $context, string $key, string $value)
Expand Down
2 changes: 2 additions & 0 deletions src/Phpro/SoapClient/Console/Command/GenerateTypesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$io->success('All SOAP types generated');

return 0;
}

/**
Expand Down

0 comments on commit 46e2b17

Please sign in to comment.