| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | 9 | public function register(WritableInterface $container) |
|
| 37 | { |
||
| 38 | 9 | $config = $container->get(ProviderInterface::CONFIG); |
|
| 39 | |||
| 40 | 9 | if (class_exists($this->provider) === true) { |
|
| 41 | $providers = $config->get($this->providers); |
||
| 42 | |||
| 43 | $provider = new $this->provider($providers); |
||
| 44 | |||
| 45 | $container = $provider->register($container); |
||
| 46 | } |
||
| 47 | |||
| 48 | 9 | return $container; |
|
| 49 | } |
||
| 51 |