| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 6 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 20 | public function register() |
||
| 21 | { |
||
| 22 | $driver = ucfirst(config('modules.driver')); |
||
| 23 | |||
| 24 | if ($driver == 'Custom') { |
||
| 25 | $namespace = config('modules.custom_driver'); |
||
| 26 | } else { |
||
| 27 | $namespace = 'Caffeinated\Modules\Repositories\\'.$driver.'Repository'; |
||
| 28 | } |
||
| 29 | |||
| 30 | $this->app->bind('Caffeinated\Modules\Contracts\RepositoryInterface', $namespace); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |