| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function register(ContainerInterface $app) |
||
| 15 | { |
||
| 16 | $app->closure(SymfonyApplication::class, function () { |
||
| 17 | return new SymfonyApplication( |
||
| 18 | Application::NAME, |
||
| 19 | Application::VERSION |
||
| 20 | ); |
||
| 21 | }); |
||
| 22 | $app->bind(Dispatcher::class)->after(function (Dispatcher $dispatcher) { |
||
| 23 | foreach ($this->commands as $name => $command) { |
||
| 24 | $dispatcher->add($name, $command); |
||
| 25 | } |
||
| 26 | }); |
||
| 27 | } |
||
| 28 | |||
| 33 |