1 | <?php |
||
26 | class GenerateBundleCommand extends SymfonyGenerateBundleCommand |
||
27 | { |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $loaderBundleName; |
||
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | 18 | protected function configure() |
|
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | * |
||
63 | * @param InputInterface $input input |
||
64 | * @param OutputInterface $output output |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | 14 | protected function execute(InputInterface $input, OutputInterface $output) |
|
83 | |||
84 | /** |
||
85 | * {@inheritDoc} |
||
86 | * Add the new bundle to the BundleBundle loader infrastructure instead of main kernel |
||
87 | * |
||
88 | * @param OutputInterface $output output |
||
89 | * @param KernelInterface $kernel kernel |
||
90 | * @param Bundle $bundle bundle |
||
91 | * |
||
92 | * @return string[] |
||
|
|||
93 | */ |
||
94 | protected function updateKernel(OutputInterface $output, KernelInterface $kernel, Bundle $bundle) |
||
98 | |||
99 | /** |
||
100 | * {@inheritDoc} |
||
101 | * Don't check routing since graviton bundles usually get routed explicitly based on their naming. |
||
102 | * |
||
103 | * @param OutputInterface $output output |
||
104 | * @param Bundle $bundle bundle |
||
105 | * |
||
106 | * @return string[] |
||
107 | */ |
||
108 | 14 | protected function updateRouting(OutputInterface $output, Bundle $bundle) |
|
112 | |||
113 | /** |
||
114 | * {@inheritDoc} |
||
115 | * Don't do anything with the configuration since we load our bundles dynamically using the bundle-bundle-bundle |
||
116 | * |
||
117 | * @param OutputInterface $output output |
||
118 | * @param Bundle $bundle bundle |
||
119 | * |
||
120 | * @return void |
||
121 | */ |
||
122 | 4 | protected function updateConfiguration(OutputInterface $output, Bundle $bundle) |
|
126 | |||
127 | /** |
||
128 | * {@inheritDoc} |
||
129 | * Use an overridden generator to make nicer code |
||
130 | * |
||
131 | * @return BundleGenerator |
||
132 | */ |
||
133 | protected function createGenerator() |
||
137 | } |
||
138 |
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.