From cc117ffda640a31ea47163fdc875198879f9e121 Mon Sep 17 00:00:00 2001 From: Koen Caerels Date: Thu, 11 Jul 2024 23:31:12 +0200 Subject: [PATCH] QA fix. --- .../CLI/CreateApiDocumentation.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/application/YoshiKan/Infrastructure/CLI/CreateApiDocumentation.php b/application/YoshiKan/Infrastructure/CLI/CreateApiDocumentation.php index 06f081f..05b2a82 100644 --- a/application/YoshiKan/Infrastructure/CLI/CreateApiDocumentation.php +++ b/application/YoshiKan/Infrastructure/CLI/CreateApiDocumentation.php @@ -15,7 +15,7 @@ class CreateApiDocumentation extends Command // Constructor // —————————————————————————————————————————————————————————————————————————— - public function __construct(/*private ApiDocGenerator $apiDocGenerator*/) + public function __construct(/* private ApiDocGenerator $apiDocGenerator */) { parent::__construct('openapi:gen'); } @@ -26,13 +26,13 @@ public function __construct(/*private ApiDocGenerator $apiDocGenerator*/) protected function execute(InputInterface $input, OutputInterface $output): int { -// $output->writeln('Start generating OpenAPI documentation'); -// $documentation = $this->apiDocGenerator->generate(); -// $json = json_encode($documentation, \JSON_PRETTY_PRINT); -// $jsonPath = './frontends/member_module/src/api/client/schema.json'; -// file_put_contents($jsonPath, $json); -// $output->writeln('Done generating OpenAPI documentation'); -// -// return Command::SUCCESS; + // $output->writeln('Start generating OpenAPI documentation'); + // $documentation = $this->apiDocGenerator->generate(); + // $json = json_encode($documentation, \JSON_PRETTY_PRINT); + // $jsonPath = './frontends/member_module/src/api/client/schema.json'; + // file_put_contents($jsonPath, $json); + // $output->writeln('Done generating OpenAPI documentation'); + + return Command::SUCCESS; } }