| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 6 | public function register(WritableInterface $container) |
|
| 44 | 2 | { |
|
| 45 | 6 | $config = $container->get(ProviderInterface::CONFIG); |
|
| 46 | |||
| 47 | 6 | $slytherin = new SlytherinContainer; |
|
| 48 | |||
| 49 | 6 | $config = new SlytherinConfig($config->all()); |
|
| 50 | |||
| 51 | 6 | foreach ((array) $this->integrations as $item) { |
|
| 52 | 6 | $slytherin = $item->define($slytherin, $config); |
|
| 53 | 4 | } |
|
| 54 | |||
| 55 | 6 | return $container->set(self::CONTAINER, $slytherin); |
|
| 56 | } |
||
| 57 | } |
||
| 58 |