| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function registerCacheDriver() |
||
| 28 | { |
||
| 29 | $this->app['cache']->extend('dual-cache', function ($app, $config) { |
||
| 30 | /** @var CacheManager $cacheManager */ |
||
| 31 | $cacheManager = $app['cache']; |
||
| 32 | return new Repository( |
||
| 33 | new DualCacheStore( |
||
| 34 | $cacheManager->store($config['primary'])->getStore(), |
||
| 35 | $cacheManager->store($config['secondary'])->getStore(), |
||
| 36 | new DualCacheHandler() |
||
| 37 | ) |
||
| 38 | ); |
||
| 39 | }); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |