| 1 | <?php |
||
| 15 | class CacheInterceptor implements MethodInterceptor |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var QueryRepositoryInterface |
||
| 19 | */ |
||
| 20 | private $repository; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var Reader |
||
| 24 | */ |
||
| 25 | private $reader; |
||
| 26 | |||
| 27 | 20 | public function __construct( |
|
| 28 | QueryRepositoryInterface $repository, |
||
| 29 | Reader $annotationReader |
||
| 30 | ) { |
||
| 31 | 20 | $this->repository = $repository; |
|
| 32 | 20 | $this->reader = $annotationReader; |
|
| 33 | 20 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 18 | public function invoke(MethodInvocation $invocation) |
|
| 60 | } |
||
| 61 |