| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Modules\Dashboard\Providers; |
||
| 23 | public function register() |
||
| 24 | { |
||
| 25 | $this->app->bind( |
||
| 26 | 'Modules\Dashboard\Repositories\WidgetRepository', |
||
| 27 | function () { |
||
| 28 | $repository = new EloquentWidgetRepository(new Widget()); |
||
| 29 | |||
| 30 | if (! config('app.cache')) { |
||
| 31 | return $repository; |
||
| 32 | } |
||
| 33 | |||
| 34 | return new CacheWidgetDecorator($repository); |
||
| 35 | } |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 65 |