Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class AddRouteConfigsToRouteFilesCommand extends Command |
||
11 | { |
||
12 | protected static $defaultName = 'api-versioning:generate-route-configs'; |
||
13 | |||
14 | private ApiVersioningHandler $apiVersioningHandler; |
||
15 | |||
16 | public function __construct( |
||
17 | ApiVersioningHandler $apiVersioningHandler, |
||
18 | string $name = null |
||
19 | ) { |
||
20 | parent::__construct($name); |
||
21 | $this->apiVersioningHandler = $apiVersioningHandler; |
||
22 | } |
||
23 | |||
24 | protected function configure(): void |
||
25 | { |
||
26 | $this->setDescription('Generate route configs'); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param InputInterface $input |
||
31 | * @param OutputInterface $output |
||
32 | * |
||
33 | * @return int |
||
34 | */ |
||
35 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
40 | } |
||
41 | } |
||
42 |