@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @param $backend |
44 | 44 | * |
45 | - * @return Closure|\Cmp\Cache\Infrastructure\ArrayCache |
|
45 | + * @return \Cmp\Cache\Domain\Cache |
|
46 | 46 | */ |
47 | 47 | private function getCache($backend) |
48 | 48 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @param array|Redis $redis |
64 | 64 | * |
65 | - * @return Closure |
|
65 | + * @return \Cmp\Cache\Infrastructure\RedisCache |
|
66 | 66 | */ |
67 | 67 | private function getRedis($redis) |
68 | 68 | { |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $pimple['cache.backend'] = 'array'; |
27 | 27 | $pimple['cache.debug'] = false; |
28 | 28 | |
29 | - $pimple['cache'] = function () use ($pimple) { |
|
29 | + $pimple['cache'] = function() use ($pimple) { |
|
30 | 30 | $cache = $this->getCache($pimple['cache.backend']); |
31 | 31 | |
32 | 32 | if ($pimple['cache.debug']) { |