1 | <?php |
||
19 | class SwaggerGenerateCommand extends Command |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * container |
||
24 | * |
||
25 | * @var \Symfony\Component\DependencyInjection\ContainerInterface |
||
26 | */ |
||
27 | private $container; |
||
28 | |||
29 | /** |
||
30 | * root dir |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $rootDir; |
||
35 | |||
36 | /** |
||
37 | * filesystem |
||
38 | * |
||
39 | * @var \Symfony\Component\Filesystem\Filesystem |
||
40 | */ |
||
41 | private $filesystem; |
||
42 | |||
43 | /** |
||
44 | * apidoc service |
||
45 | * |
||
46 | * @var \Graviton\SwaggerBundle\Service\Swagger |
||
47 | */ |
||
48 | private $apidoc; |
||
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | * |
||
53 | * @return void |
||
54 | */ |
||
55 | 4 | protected function configure() |
|
64 | |||
65 | /** |
||
66 | * set container |
||
67 | * |
||
68 | * @param \Symfony\Component\DependencyInjection\ContainerInterface $container service_container |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | 4 | public function setContainer($container) |
|
76 | |||
77 | /** |
||
78 | * sets the root dir |
||
79 | * |
||
80 | * @param string $rootDir root dir |
||
81 | * |
||
82 | * @return void |
||
83 | */ |
||
84 | 4 | public function setRootDir($rootDir) |
|
88 | |||
89 | /** |
||
90 | * set filesystem |
||
91 | * |
||
92 | * @param mixed $filesystem filesystem |
||
93 | * |
||
94 | * @return void |
||
95 | */ |
||
96 | 4 | public function setFilesystem($filesystem) |
|
100 | |||
101 | /** |
||
102 | * sets apidoc |
||
103 | * |
||
104 | * @param mixed $apidoc apidoc |
||
105 | * |
||
106 | * @return void |
||
107 | */ |
||
108 | 4 | public function setApidoc($apidoc) |
|
112 | |||
113 | /** |
||
114 | * {@inheritDoc} |
||
115 | * |
||
116 | * @param InputInterface $input input |
||
117 | * @param OutputInterface $output output |
||
118 | * |
||
119 | * @return void |
||
120 | */ |
||
121 | protected function execute(InputInterface $input, OutputInterface $output) |
||
152 | } |
||
153 |