| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php namespace Modules\Page\Providers; |
||
| 38 | private function registerBindings() |
||
| 39 | { |
||
| 40 | $this->app->bind( |
||
| 41 | 'Modules\Page\Repositories\PageRepository', |
||
| 42 | function () { |
||
| 43 | $repository = new EloquentPageRepository(new Page()); |
||
| 44 | |||
| 45 | if (! Config::get('app.cache')) { |
||
| 46 | return $repository; |
||
| 47 | } |
||
| 48 | |||
| 49 | return new CachePageDecorator($repository); |
||
| 50 | } |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |