| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 90 | public function register(DiInterface $container) |
|
| 18 | { |
||
| 19 | 90 | $container->setShared( |
|
| 20 | 90 | 'config', |
|
| 21 | function () { |
||
| 22 | /** |
||
| 23 | * @todo Find a better way to handle unit test file include |
||
| 24 | */ |
||
| 25 | 77 | $data = require appPath('library/Core/config.php'); |
|
| 26 | |||
| 27 | 77 | return new Config($data); |
|
| 28 | 90 | } |
|
| 29 | ); |
||
| 30 | 90 | } |
|
| 31 | } |
||
| 32 |