@@ -29,10 +29,17 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | protected $callbacks = []; |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param string $cacheDir |
|
| 34 | + */ |
|
| 32 | 35 | public function __construct($cacheDir = null) |
| 33 | 36 | { |
| 34 | 37 | $this->cacheDir = !is_null($cacheDir) ? $cacheDir : realpath(__DIR__ . '/../..'); |
| 35 | 38 | $this->registerCallback( |
| 39 | + |
|
| 40 | + /** |
|
| 41 | + * @param string $cache |
|
| 42 | + */ |
|
| 36 | 43 | function ($cache) { |
| 37 | 44 | if ($cache instanceof Cache) { |
| 38 | 45 | return new DoctrineCacheAdapter($cache); |
@@ -41,6 +48,10 @@ discard block |
||
| 41 | 48 | } |
| 42 | 49 | ) |
| 43 | 50 | ->registerCallback( |
| 51 | + |
|
| 52 | + /** |
|
| 53 | + * @param string $cache |
|
| 54 | + */ |
|
| 44 | 55 | function ($cache) { |
| 45 | 56 | if ($cache instanceof \Redis) { |
| 46 | 57 | return new PhpRedisCacheAdapter($cache); |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | 79 | * @internal will become protected in version 2.0 |
| 80 | - * @return CacheAdapterInterface|CacheItemPoolInterface |
|
| 80 | + * @return CacheItemPoolInterface |
|
| 81 | 81 | */ |
| 82 | 82 | public function getCacheAdapter() |
| 83 | 83 | { |