| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1.125 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 71 | public function register(DiInterface $container) |
|
| 17 | { |
||
| 18 | 71 | $config = $container->getShared('config'); |
|
| 19 | |||
| 20 | 71 | $container->setShared( |
|
| 21 | 71 | 'manager', |
|
| 22 | function () use ($config) { |
||
| 23 | $manager = new Manager(); |
||
| 24 | |||
| 25 | $handlers = $this->providers = require appPath('api/config/handlers.php'); |
||
| 26 | |||
| 27 | //Pass Handlers as array |
||
| 28 | $manager->setHandlers($handlers); |
||
| 29 | |||
| 30 | return $manager; |
||
| 31 | 71 | } |
|
| 35 |