| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function invoke(MethodInvocation $invocation) |
||
| 31 | { |
||
| 32 | $cacheControl = $this->reader->getClassAnnotation($invocation->getMethod()->getDeclaringClass(), AbstractCacheControl::class); |
||
| 33 | $ro = $invocation->proceed(); |
||
| 34 | if ($ro->code === 200) { |
||
| 35 | $ro->headers['Cache-Control'] = (string) $cacheControl; |
||
| 36 | } |
||
| 37 | |||
| 38 | return $ro; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |