Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function __invoke(InputInterface $input, OutputInterface $output) |
||
21 | { |
||
22 | $app = $this->appContainer; |
||
23 | |||
24 | /** @var Application $application */ |
||
25 | $application = $app->resolve(Application::class); |
||
26 | $command = $application->find('create:collection'); |
||
27 | |||
28 | $inputs = array( |
||
29 | 'namespace' => $input->getArgument('namespace'), |
||
30 | 'name' => $input->getArgument('name'), |
||
31 | 'table-name' => $input->getArgument('table-name'), |
||
32 | 'id-field' => $input->getArgument('id-field') |
||
33 | ); |
||
34 | |||
35 | $greetInput = new ArrayInput($inputs); |
||
36 | $command->run($greetInput, $output); |
||
37 | } |
||
39 |