| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public static function loadContainer($configFile) |
||
| 22 | { |
||
| 23 | if (!static::$container) { |
||
| 24 | $container = new ServiceContainer(); |
||
| 25 | $iocBinder = new IocBinder($container); |
||
| 26 | $iocBinder->preBind(); |
||
| 27 | $config = require $configFile; |
||
| 28 | $iocBinder->postBind($config); |
||
| 29 | static::$container = $container; |
||
| 30 | } |
||
| 31 | |||
| 32 | return static::$container; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |