1 | <?php |
||
25 | class GenerateBundleCommand extends SymfonyGenerateBundleCommand |
||
26 | { |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $loaderBundleName; |
||
31 | |||
32 | /** |
||
33 | * @var boolean |
||
34 | */ |
||
35 | private $doUpdate; |
||
36 | |||
37 | /** |
||
38 | * {@inheritDoc} |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | 16 | protected function configure() |
|
63 | |||
64 | /** |
||
65 | * {@inheritDoc} |
||
66 | * |
||
67 | * @param InputInterface $input input |
||
68 | * @param OutputInterface $output output |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | 14 | protected function execute(InputInterface $input, OutputInterface $output) |
|
82 | |||
83 | /** |
||
84 | * {@inheritDoc} |
||
85 | * Add the new bundle to the BundleBundle loader infrastructure instead of main kernel |
||
86 | * |
||
87 | * @param OutputInterface $output output |
||
88 | * @param KernelInterface $kernel kernel |
||
89 | * @param Bundle $bundle bundle |
||
90 | * |
||
91 | * @return string[] |
||
|
|||
92 | */ |
||
93 | protected function updateKernel(OutputInterface $output, KernelInterface $kernel, Bundle $bundle) |
||
143 | |||
144 | /** |
||
145 | * {@inheritDoc} |
||
146 | * Don't check routing since graviton bundles usually get routed explicitly based on their naming. |
||
147 | * |
||
148 | * @param OutputInterface $output output |
||
149 | * @param Bundle $bundle bundle |
||
150 | * |
||
151 | * @return string[] |
||
152 | */ |
||
153 | 14 | protected function updateRouting(OutputInterface $output, Bundle $bundle) |
|
157 | |||
158 | /** |
||
159 | * {@inheritDoc} |
||
160 | * Don't do anything with the configuration since we load our bundles dynamically using the bundle-bundle-bundle |
||
161 | * |
||
162 | * @param OutputInterface $output output |
||
163 | * @param Bundle $bundle bundle |
||
164 | * |
||
165 | * @return void |
||
166 | */ |
||
167 | 4 | protected function updateConfiguration(OutputInterface $output, Bundle $bundle) |
|
171 | |||
172 | /** |
||
173 | * {@inheritDoc} |
||
174 | * Use an overridden generator to make nicer code |
||
175 | * |
||
176 | * @return BundleGenerator |
||
177 | */ |
||
178 | protected function createGenerator() |
||
182 | } |
||
183 |
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.