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 | $namespace = explode('_', $input->getArgument('namespace')); |
||
23 | $app = $this->appContainer; |
||
24 | |||
25 | /** @var Application $application */ |
||
26 | $application = $app->resolve(Application::class); |
||
27 | $command = $application->find('create:repository'); |
||
28 | |||
29 | $inputs = array( |
||
30 | 'namespace' => $input->getArgument('namespace'), |
||
31 | 'interface-name' => $input->getArgument('name') . 'RepositoryInterface', |
||
32 | 'model-class' => $namespace[0] . '\\' . $namespace[1] . '\\Model\\' . $input->getArgument('name') |
||
33 | ); |
||
34 | |||
35 | $greetInput = new ArrayInput($inputs); |
||
36 | $command->run($greetInput, $output); |
||
37 | } |
||
39 |