Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject the entity in the UserProvider #177

Open
skuhnow opened this issue Sep 20, 2023 · 1 comment
Open

Inject the entity in the UserProvider #177

skuhnow opened this issue Sep 20, 2023 · 1 comment
Labels
enhancement New feature or request feedback needed Further information is requested

Comments

@skuhnow
Copy link

skuhnow commented Sep 20, 2023

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

@skuhnow skuhnow added the enhancement New feature or request label Sep 20, 2023
@DamienHarper
Copy link
Owner

@skuhnow Sorry for this late reply. I'm not sure to understand your use case and suggestion: where does the updatedBy property come from?

@DamienHarper DamienHarper added the feedback needed Further information is requested label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feedback needed Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants