| 1 | <?php |
||
| 17 | class EmptyExtRefListener |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * if is empty extref object, divert serializing to type Empty, which creates a null instead of empty object |
||
| 22 | * |
||
| 23 | * @param PreSerializeEvent $event event |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | * @throws \Exception |
||
| 27 | */ |
||
| 28 | public function onPreSerialize(PreSerializeEvent $event) |
||
| 35 | } |
||
| 36 |