-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
explore using listeners for password encoding and canonicalization #48
Comments
Using doctrine listeners made me hate them. I really prefer using 'doer' objects that wrap doctrine actions and explicitly add logic; the way the user manager actually works is fine IMO. In my current project I removed all doctrine listeners. To replace listeners on entity removal for example, I use a remover service. Instead of
I prefer
I think services that act on entities should not have access to the manager, and I prefer flushing manually after beeing sure everything went fine. I know the problem is that removing $stuff without using the dedicated service may be disastrous. I have nothing to argue about that, just use the freaking service. My 0.02 bucks |
I think we already decided against this, not sure why we should revisit this decision, has anything changed since then? |
The issue is that |
i just didnt remember the reasons .. |
A solution would be to provide a Doctrine listener calling
What do you think about this way to go ? |
maybe because i havent suffered from Doctrine listeners yet, i am open to this suggestion :) |
No description provided.
The text was updated successfully, but these errors were encountered: