My Problem: We issue some change requests by a middleware and the user of that middleware is always "internal" so every audit entry has the blame_user "internal", but the actual user is given by the property "updatedBy".
My Suggestion: Inject the $entity in the UserProviderInterface::__invoke() method or, to keep backward compatibility, add a second interface like EntityAwareUserProviderInterface with said signature, so that I can check the entity for the updatedBy property/method and build by User
My Problem: We issue some change requests by a middleware and the user of that middleware is always "internal" so every audit entry has the
blame_user
"internal", but the actual user is given by the property "updatedBy".My Suggestion: Inject the
$entity
in theUserProviderInterface::__invoke()
method or, to keep backward compatibility, add a second interface likeEntityAwareUserProviderInterface
with said signature, so that I can check the entity for theupdatedBy
property/method and build by User