| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Modules\Block\Providers; |
||
| 42 | private function registerBindings() |
||
| 43 | { |
||
| 44 | $this->app->bind( |
||
| 45 | 'Modules\Block\Repositories\BlockRepository', |
||
| 46 | function () { |
||
| 47 | $repository = new EloquentBlockRepository(new Block()); |
||
| 48 | |||
| 49 | if (! config('app.cache')) { |
||
| 50 | return $repository; |
||
| 51 | } |
||
| 52 | |||
| 53 | return new CacheBlockDecorator($repository); |
||
| 54 | } |
||
| 55 | ); |
||
| 56 | } |
||
| 57 | |||
| 64 |