sulu / SuluHeadlessBundle

Bundle that provides controllers and services for using Sulu as headless content management system
MIT License
45 stars 25 forks source link

Add reference store integration for StructureResolver #78

Closed alexander-schranz closed 3 years ago

alexander-schranz commented 3 years ago

When implementing #79 I thought it would be better to move the reference store to the serializer services. There sadly does not exist a PageSerializer, there the general StructureResolver is used, which I totally forget in all cases need a referenceStore so the page itself can be invalidated by the tag. Sadly the StructureResolver would need to know multiple reference store. How do we handle this? I could go on the StructureType or what is called but would the reference store for the pages was not updated and still use the old content name so I would to implement a mapping: