| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 1 | public static function create(Container $container): void |
|
| 14 | { |
||
| 15 | 1 | $kernel = $container->get(Kernel::class); |
|
| 16 | |||
| 17 | // Boot console application |
||
| 18 | 1 | $console = new Application('FondBot', Kernel::VERSION); |
|
| 19 | 1 | $console->addCommands([ |
|
| 20 | 1 | new Commands\MakeIntent($kernel), |
|
| 21 | 1 | new Commands\MakeInteraction($kernel), |
|
| 22 | 1 | new Commands\ListDrivers($kernel), |
|
| 23 | 1 | new Commands\InstallDriver($kernel), |
|
| 24 | 1 | new Commands\ListChannels($kernel), |
|
| 25 | 1 | new Commands\Log($kernel), |
|
| 26 | 1 | new Commands\QueueWorker($kernel), |
|
| 27 | ]); |
||
| 28 | |||
| 29 | 1 | $container->add('console', $console); |
|
| 30 | 1 | } |
|
| 31 | } |
||
| 32 |