| Conditions | 6 |
| Paths | 5 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 6.5625 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 2 | public function __construct($configFile) |
|
| 22 | { |
||
| 23 | 2 | $this->configure($configFile); |
|
| 24 | 2 | foreach ($this->config["services"] as $name => $service) { |
|
| 25 | 2 | if (isset($service["shared"]) && $service["shared"]) { |
|
| 26 | 2 | $this->setShared($name, $service["callback"]); |
|
| 27 | 2 | } else { |
|
| 28 | $this->set($name, $service["callback"]); |
||
| 29 | } |
||
| 30 | |||
| 31 | 2 | if (isset($service["active"]) && $service["active"]) { |
|
| 32 | $this->get($name); |
||
| 33 | } |
||
| 34 | 2 | } |
|
| 35 | 2 | } |
|
| 36 | } |
||
| 37 |