diff --git a/Controller/YamlDocumentationController.php b/Controller/YamlDocumentationController.php index 62be3ad..7557fc8 100644 --- a/Controller/YamlDocumentationController.php +++ b/Controller/YamlDocumentationController.php @@ -17,7 +17,6 @@ use Psr\Container\ContainerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; -use Symfony\Component\Yaml\Yaml; final class YamlDocumentationController { @@ -42,7 +41,7 @@ final class YamlDocumentationController } return new Response($spec->toYaml(), 200, [ - 'Content-Type' => 'text/x-yaml' + 'Content-Type' => 'text/x-yaml', ]); } } diff --git a/Tests/Functional/SwaggerUiTest.php b/Tests/Functional/SwaggerUiTest.php index ddc9129..01dc4a0 100644 --- a/Tests/Functional/SwaggerUiTest.php +++ b/Tests/Functional/SwaggerUiTest.php @@ -13,7 +13,6 @@ namespace Nelmio\ApiDocBundle\Tests\Functional; use OpenApi\Annotations\Server; use Symfony\Bundle\FrameworkBundle\KernelBrowser; -use Symfony\Component\Yaml\Yaml; class SwaggerUiTest extends WebTestCase {