demos-europe / edt

Enables your PHP application to expose its entities as REST resources using the feature rich JSON:API specification as API. How and to whom your entities are exposed is highly customizable while minimizing boilerplate code.
MIT License
2 stars 1 forks source link

Avoid redundant transformer initializations #82

Open dresslerdemos opened 1 year ago

dresslerdemos commented 1 year ago

The current implementation of DynamicTransformer will initialize a new instance every time such is needed. Using fractals registry this should be avoidable.

It may be advantageous to tackle this task together with (or at least after) https://github.com/demos-europe/edt/issues/81, to avoid multiple overhauls of the DynamicTransformer.