| Conditions | 2 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function registerBindings(IContainer $container) |
||
| 35 | { |
||
| 36 | try { |
||
| 37 | $unitOfWork = $container->resolve(IUnitOfWork::class); |
||
| 38 | $this->bindRepositories($container, $unitOfWork); |
||
| 39 | } catch (IocException $ex) { |
||
| 40 | $namespace = explode('\\', __NAMESPACE__)[0]; |
||
| 41 | throw new RuntimeException("Failed to register $namespace bindings", 0, $ex); |
||
| 42 | } |
||
| 45 |