Ruud Kamphuis
Ruud Kamphuis
We're using Autowire and don't have an XML file for the container. See https://github.com/shipmonk-rnd/dead-code-detector/issues/92 for an explanation.
> The easiest way is to mark serialized objects by some interface/attribute/namespace and use that in custom `EntrypointProvider`. If all your classes already have `SerializedName` or `SerializedPath` in its props,...
Same as with https://github.com/shipmonk-rnd/dead-code-detector/issues/91, the dispatch call will mark something as not dead. In this issue, the deserialize call should mark it as non dead.
Looking at what the EntrypointProvider does, it just mimics a call to something. Interesting, I'll play with that in the future 😊
> I would not change existing functionality, but could see the addition of another API that allows retrieving the unaliased path. So next to a `path` we keep a `safePath`...
To calculate it lazily, what's the best approach? I was thinking to add a method to `ResolveInfo` that uses the `path` and then walks through the `operation` selection sets again...
Implemented in https://github.com/webonyx/graphql-php/pull/1548
Thanks @spawnia 🎉
That's even better! I will try that next week and let you know! Thanks 🥳
I tried it, but it doesn't work together with `sync`. It seems that `sync` just ignores it. But we can close this, I can automate this in my own sync...