-
Notifications
You must be signed in to change notification settings - Fork 342
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
[BC BREAK] Remove state from user entity #526
base: master
Are you sure you want to change the base?
Conversation
I agree with the removal of this state thing. 👍 |
Seems logic to me never used that option so 👍 |
👍 IMO we should go further and remove everything that isn't necessary for authentication (eg: display_name, and, well, that's it I guess :P) |
👍 Many implementations would be better served by an Enablement |
@adamlundrigan i like the idea of display_name, because other modules know there's a way to print the users name if we have that method. |
@Danielss89 IMO in all but the simplest cases the developer will be extending ZfcUser with additional profile data for the user anyway so removing it from core would just add another field to implement. That said, name is pretty well a universal field for profiles so maybe you're right and we should leave it alone. |
display_name shoudl stay in accoring to me. |
|
@texdc that's my line of thinking as well, and what I've tried to accomplish (albeit awkwardly) in LdcUserProfile. In my own apps I prefer to keep the mechanical "user" (for authentication) separate from the domain model "user" (for use in the app). We could chuck all the non-authentication-related fields into a separate ZfcUserProfile module that, as you say, provides an abstract class with the common fields already implemented and make it easy to add your own fields. I liked the approach taken by SpiffyUser, where various bits of the system were implemented through extensions that could be enabled/disabled. Splitting it out into a separate module jives with my suggestion in #555 (Splitting ZfcUser); split each separate concern into it's own module, then |
|
Any progress on this? |
This is for 2.0 which is still in the future, so i'll keep them as PR's until i'm ready to do more about it. |
@Danielss89 Maybe you can merge this PR now? |
@stijnhau Do you have time to rebase this? |
@Danielss89 |
@stijnhau You can just make a PR for the Eye4web/ZfcUser, and i will merge that. Then it will automaticly enter here. |
@Danielss89 |
@Danielss89 Any progress on this? |
In the process of simplifying ZfcUser i've removed 'state' from the user entity.