Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Bridge/Symfony/Bundle/Command/OpenApiCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
*/
final class OpenApiCommand extends Command
{
protected static $defaultName = 'api:openapi:export';

private $openApiFactory;
private $normalizer;

Expand All @@ -45,7 +47,6 @@ public function __construct(OpenApiFactoryInterface $openApiFactory, NormalizerI
protected function configure()
{
$this
->setName('api:openapi:export')
->setDescription('Dump the Open API documentation')
->addOption('yaml', 'y', InputOption::VALUE_NONE, 'Dump the documentation in YAML')
->addOption('output', 'o', InputOption::VALUE_OPTIONAL, 'Write output to file')
Expand Down
3 changes: 2 additions & 1 deletion src/Bridge/Symfony/Bundle/Command/SwaggerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
*/
final class SwaggerCommand extends Command
{
protected static $defaultName = 'api:swagger:export';

private $normalizer;
private $resourceNameCollectionFactory;
private $apiTitle;
Expand Down Expand Up @@ -67,7 +69,6 @@ public function __construct(NormalizerInterface $normalizer, ResourceNameCollect
protected function configure()
{
$this
->setName('api:swagger:export')
->setDescription('Dump the Swagger v2 documentation')
->addOption('yaml', 'y', InputOption::VALUE_NONE, 'Dump the documentation in YAML')
->addOption('spec-version', null, InputOption::VALUE_OPTIONAL, sprintf('OpenAPI version to use (%s)', implode(' or ', $this->swaggerVersions)), $this->swaggerVersions[0] ?? 2)
Expand Down