| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 46 | public function handle( |
||
| 47 | Throwable $throwable, |
||
| 48 | string $eventListenerIdentifier, |
||
| 49 | EventInterface $event |
||
| 50 | ): EventErrorHandlerInterface { |
||
| 51 | $json = $this->serializer->serialize($event, 'json'); |
||
| 52 | |||
| 53 | $key = sprintf( |
||
| 54 | '%s:%s:%s', |
||
| 55 | $event->getName(), |
||
| 56 | $eventListenerIdentifier, |
||
| 57 | md5($json) |
||
| 58 | ); |
||
| 59 | |||
| 60 | $this->cache->set($key, $json, EventCacheConstants::LIFE_TIME); |
||
| 61 | |||
| 62 | return $this; |
||
| 63 | } |
||
| 65 |