| 1 | <?php |
||
| 24 | final class SwaggerCommand extends Command |
||
| 25 | { |
||
| 26 | private $apiDocumentationBuilder; |
||
| 27 | |||
| 28 | public function __construct(ApiDocumentationBuilder $apiDocumentationBuilder) |
||
| 29 | { |
||
| 30 | parent::__construct(); |
||
| 31 | $this->apiDocumentationBuilder = $apiDocumentationBuilder; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | protected function configure() |
||
| 38 | { |
||
| 39 | $this |
||
| 40 | ->setName('api:swagger:export') |
||
| 41 | ->setDescription('Dump the Swagger 2.0 (OpenAPI) documentation'); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 53 | } |
||
| 54 |