Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
38 | public function execute(ContainerInterface $app): int |
||
39 | { |
||
40 | $dispatcher = new Dispatcher( |
||
41 | $app, |
||
42 | $symfonyApplication = new SymfonyApplication( |
||
43 | Application::NAME, |
||
44 | Application::VERSION |
||
45 | ) |
||
46 | ); |
||
47 | |||
48 | foreach ($this->commands as $name => $command) { |
||
49 | $dispatcher->add($name, $command); |
||
50 | } |
||
51 | $dispatcher->execute(); |
||
52 | return $symfonyApplication->run(); |
||
53 | } |
||
54 | } |
||
55 |