| 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; |
||
| 22 | public function register() |
||
| 23 | { |
||
| 24 | $this->app->bind( |
||
| 25 | 'Modules\Dashboard\Repositories\WidgetRepository', |
||
| 26 | function () { |
||
| 27 | $repository = new EloquentWidgetRepository(new Widget()); |
||
| 28 | |||
| 29 | if (! config('app.cache')) { |
||
| 30 | return $repository; |
||
| 31 | } |
||
| 32 | |||
| 33 | return new CacheWidgetDecorator($repository); |
||
| 34 | } |
||
| 35 | ); |
||
| 36 | } |
||
| 37 | |||
| 48 |