Skip to content

Commit

Permalink
chore: openapi command alias (#5575)
Browse files Browse the repository at this point in the history
fixes #5567
  • Loading branch information
soyuka committed Apr 28, 2023
1 parent f0ca1b4 commit 7f22569
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/OpenApi/Command/OpenApiCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,4 @@ public static function getDefaultName(): string
}
}

if (!class_exists(\ApiPlatform\Symfony\Bundle\Command\OpenApiCommand::class)) {
class_alias(OpenApiCommand::class, \ApiPlatform\Symfony\Bundle\Command\OpenApiCommand::class);
}
class_alias(OpenApiCommand::class, \ApiPlatform\Symfony\Bundle\Command\OpenApiCommand::class);

0 comments on commit 7f22569

Please sign in to comment.