| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | class DebugListener implements EventSubscriberInterface |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | 1 | public static function getSubscribedEvents(): array |
|
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Extract the cache HIT/MISS information from the X-Symfony-Cache header. |
||
| 39 | * |
||
| 40 | * For this header to be present, the HttpCache must be created with the |
||
| 41 | * debug option set to true. |
||
| 42 | */ |
||
| 43 | 5 | public function handleDebug(CacheEvent $event) |
|
| 58 |