| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4.0218 |
| 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 | 2 | } |
|
| 31 | 2 | } |
|
| 32 | } |
||
| 33 |