| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function __invoke(InputInterface $input, OutputInterface $output) |
||
| 23 | { |
||
| 24 | $app = $this->appContainer; |
||
| 25 | |||
| 26 | /** @var Application $application */ |
||
| 27 | $application = $app->resolve(Application::class); |
||
| 28 | $command = $application->find('create:requirejs-config'); |
||
| 29 | |||
| 30 | $inputs = [ |
||
| 31 | 'namespace' => $input->getArgument('namespace') |
||
| 32 | ]; |
||
| 33 | |||
| 34 | if ($input->getOption('admin')) { |
||
| 35 | $inputs['--admin'] = 'true'; |
||
| 36 | } |
||
| 37 | |||
| 38 | $greetInput = new ArrayInput($inputs); |
||
| 39 | $command->run($greetInput, $output); |
||
| 40 | } |
||
| 42 |