| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 2 | ||
| 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 | 3 | { |
|
| 42 | 9 | $providers = $config->get($this->providers); |
|
| 43 | |||
| 44 | 9 | $provider = new $this->provider($providers); |
|
| 45 | |||
| 46 | 9 | $container = $provider->register($container); |
|
| 47 | 3 | } |
|
| 48 | |||
| 49 | 9 | return $container; |
|
| 50 | } |
||
| 52 |