| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function register(DiInterface $container) |
||
| 17 | {
|
||
| 18 | $config = $container->getShared('config');
|
||
| 19 | |||
| 20 | $container->setShared( |
||
| 21 | 'dispatcher', |
||
| 22 | function () use ($config) {
|
||
| 23 | $dispatcher = new Dispatcher(); |
||
| 24 | $dispatcher->setDefaultNamespace(ucfirst($config->app->namespaceName) . '\Cli\Tasks'); |
||
| 25 | |||
| 26 | return $dispatcher; |
||
| 27 | } |
||
| 31 |