1 | <?php |
||
26 | class GenerateBundleCommand extends SymfonyGenerateBundleCommand |
||
27 | { |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $loaderBundleName; |
||
32 | |||
33 | /** |
||
34 | * @var boolean |
||
35 | */ |
||
36 | private $doUpdate; |
||
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
40 | * |
||
41 | * @return void |
||
42 | */ |
||
43 | 18 | protected function configure() |
|
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | * |
||
75 | * @param InputInterface $input input |
||
76 | * @param OutputInterface $output output |
||
77 | * |
||
78 | * @return void |
||
79 | */ |
||
80 | 14 | protected function execute(InputInterface $input, OutputInterface $output) |
|
96 | |||
97 | /** |
||
98 | * {@inheritDoc} |
||
99 | * Add the new bundle to the BundleBundle loader infrastructure instead of main kernel |
||
100 | * |
||
101 | * @param OutputInterface $output output |
||
102 | * @param KernelInterface $kernel kernel |
||
103 | * @param Bundle $bundle bundle |
||
104 | * |
||
105 | * @return string[] |
||
|
|||
106 | */ |
||
107 | protected function updateKernel(OutputInterface $output, KernelInterface $kernel, Bundle $bundle) |
||
157 | |||
158 | /** |
||
159 | * {@inheritDoc} |
||
160 | * Don't check routing since graviton bundles usually get routed explicitly based on their naming. |
||
161 | * |
||
162 | * @param OutputInterface $output output |
||
163 | * @param Bundle $bundle bundle |
||
164 | * |
||
165 | * @return string[] |
||
166 | */ |
||
167 | 14 | protected function updateRouting(OutputInterface $output, Bundle $bundle) |
|
171 | |||
172 | /** |
||
173 | * {@inheritDoc} |
||
174 | * Don't do anything with the configuration since we load our bundles dynamically using the bundle-bundle-bundle |
||
175 | * |
||
176 | * @param OutputInterface $output output |
||
177 | * @param Bundle $bundle bundle |
||
178 | * |
||
179 | * @return void |
||
180 | */ |
||
181 | 4 | protected function updateConfiguration(OutputInterface $output, Bundle $bundle) |
|
185 | |||
186 | /** |
||
187 | * {@inheritDoc} |
||
188 | * Use an overridden generator to make nicer code |
||
189 | * |
||
190 | * @return BundleGenerator |
||
191 | */ |
||
192 | protected function createGenerator() |
||
196 | } |
||
197 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.