1 | <?php |
||
16 | class CacheAdapter implements SourceAdapterInterface |
||
17 | { |
||
18 | const HIT = 1; |
||
19 | const MISS = 0; |
||
20 | |||
21 | /** |
||
22 | * @var CacheItemPoolInterface Cache pool |
||
23 | */ |
||
24 | private $cachePool; |
||
25 | |||
26 | /** |
||
27 | * @var SourceAdapterInterface Inner adapter |
||
28 | */ |
||
29 | private $adapter; |
||
30 | |||
31 | /** |
||
32 | * @param CacheItemPoolInterface $cachePool Cache pool |
||
33 | * @param SourceAdapterInterface $adapter Inner adapter |
||
34 | */ |
||
35 | public function __construct(CacheItemPoolInterface $cachePool, $adapter) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function receive(Request $request) |
||
69 | } |
||
70 |