1 | <?php |
||
24 | class GenerateResourceCommand extends GeneratorCommand |
||
25 | { |
||
26 | /** |
||
27 | * @var Kernel |
||
28 | */ |
||
29 | private $kernel; |
||
30 | /** |
||
31 | * @var ResourceGenerator |
||
32 | */ |
||
33 | private $resourceGenerator; |
||
34 | /** |
||
35 | * @var LoaderInterface |
||
36 | */ |
||
37 | private $definitionLoader; |
||
38 | /** |
||
39 | * @var InputInterface |
||
40 | */ |
||
41 | private $input; |
||
42 | |||
43 | /** |
||
44 | * @param Kernel $kernel kernel |
||
45 | * @param ResourceGenerator $resourceGenerator generator to use for resource generation |
||
46 | * @param LoaderInterface $definitionLoader JSON definition loaded |
||
47 | */ |
||
48 | 4 | public function __construct(Kernel $kernel, ResourceGenerator $resourceGenerator, LoaderInterface $definitionLoader) |
|
55 | |||
56 | /** |
||
57 | * {@inheritDoc} |
||
58 | * |
||
59 | * @return void |
||
60 | */ |
||
61 | 4 | protected function configure() |
|
85 | |||
86 | /** |
||
87 | * {@inheritDoc} |
||
88 | * |
||
89 | * @param InputInterface $input input |
||
90 | * @param OutputInterface $output output |
||
91 | * |
||
92 | * @return void |
||
93 | */ |
||
94 | protected function execute(InputInterface $input, OutputInterface $output) |
||
129 | |||
130 | /** |
||
131 | * {@inheritDoc} |
||
132 | * |
||
133 | * @return ResourceGenerator |
||
134 | */ |
||
135 | protected function createGenerator() |
||
151 | |||
152 | /** |
||
153 | * parses bundle shortcut notation |
||
154 | * |
||
155 | * @param string $shortcut shortcut |
||
156 | * |
||
157 | * @return array parsed name |
||
|
|||
158 | */ |
||
159 | protected function parseShortcutNotation($shortcut) |
||
175 | } |
||
176 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.