Skip to content

Commit 05b6a98

Browse files
authored
Merge pull request #894 from dunglas/swagger_command
Fix an error when decorating the Swagger normalizer
2 parents ea97dd5 + cefda90 commit 05b6a98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridge/Symfony/Bundle/Command/SwaggerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
use ApiPlatform\Core\Documentation\Documentation;
1515
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface;
16-
use ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer;
1716
use Symfony\Component\Console\Command\Command;
1817
use Symfony\Component\Console\Input\InputInterface;
1918
use Symfony\Component\Console\Output\OutputInterface;
19+
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
2020

2121
/**
2222
* Console command to dump Swagger API documentations.
@@ -32,7 +32,7 @@ final class SwaggerCommand extends Command
3232
private $apiVersion;
3333
private $apiFormats;
3434

35-
public function __construct(DocumentationNormalizer $documentationNormalizer, ResourceNameCollectionFactoryInterface $resourceNameCollection, string $apiTitle, string $apiDescription, string $apiVersion, array $apiFormats)
35+
public function __construct(NormalizerInterface $documentationNormalizer, ResourceNameCollectionFactoryInterface $resourceNameCollection, string $apiTitle, string $apiDescription, string $apiVersion, array $apiFormats)
3636
{
3737
parent::__construct();
3838

0 commit comments

Comments
 (0)